Hi there,
I am struggling with my implementation of a Capsule surrounding the character and collisions versus AABBs and OBBs.
The problem I have, that I cannot figure out how to deal with this.
I already implemented Capsule vs Sphere which is quite easy (Point vs Segment). But vs a Box I do not have a constant value like the radius.
What I did so far:
- find the nearest point on the segment to the center of the box (dunno if this is useful at all)
- detect collision (which is more or less just a box vs box test)
- I thought about Seperating Axis Theorem, but doesn't it only work on boxes or not round objects?
Hoping for a push in the right direction :)
Thanks.