Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6246575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:43:03+00:00 2026-05-24T12:43:03+00:00

I have a capsule defined by two points A and B and radius r

  • 0

I have a capsule defined by two points A and B and radius r. The ray is defined by equation: X = O + D*t. Now I need to get t for all (0-2) intersection points.

One possible solution would be to calculate intersection with spheres at A and B and intersections with cylinder. Then because capsule is convex I would just take minimum and maximum of all resulting t values.

But as wikipedia states, capsule intersection test should be even simpler than cylinder intersection test. Could somebody point me to an efficient capsule-ray intersection algorithm?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:43:04+00:00Added an answer on May 24, 2026 at 12:43 pm

    To test whether a capsule intersects a ray line just test distance between the line segment crossing points A and B and the ray line. If the distance is smaller than radius r then there are two intersecting points, if is equal there is one touching point.

    To calculate intersection do as you described.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have you managed to get Aptana Studio debugging to work? I tried following this,
Have any one run into trouble when running dotLess and having hacks on your
Have a LinqtoSql query that I now want to precompile. var unorderedc = from
Let's say I have a upright capsule shape (swept sphere) that I would like
**Have it working now. I forgot to populate the Array List. How embarrassing. I'm
Have searched the database but need to specifically sum(of hours flown or days off)in
I have a file say file.txt with following contents: Capsule arr[0] in state A
Have any one tried to activate fancybox thumbnail gallery using a button or an
Have just started to get into CakePHP since a couple of weeks back. I
for my program I need pseudo random integers with different ranges. Until now I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.