Jump to content

View more

Image of the Day

Isn't this a lovely apple tempart placeholder thing  #gamedev worth a #screenshotsaturday even I would say. https://t.co/fQH1d0ySIG
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Capsule OBB collision idea, would this work?

2: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 uglybdavis   Members   

1065
Like
0Likes
Like

Posted 18 April 2013 - 07:50 PM

I won't be able to try this until i get home later tonight, but i was thinking on how to implement capsule-obb intersection.

 

Here is what i have so far:

 

Find the closest point to the obb on the line segment that represents the capsule.

Treat this point as the center of a sphere whose radius is the same as the capsules.

Do a sphere-obb collision check.

 

Would this work?

 

I don't think i missed anything....

Thanks!






Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.