Get The Entity Hit By A ConvexCast

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
mcmonkey
Posts: 92
Joined: Fri Apr 17, 2015 11:42 pm

Get The Entity Hit By A ConvexCast

Post by mcmonkey »

I performed Space.ConvexCast(...) and have a RayCastResult. How do I get the Entity impacted? The 'HitObject' merely returns a BroadPhaseEntry, which appears to have no Entity property.

EDIT: Oh, and thanks for the quick and helpful answers to my previous questions :D
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Get The Entity Hit By A ConvexCast

Post by Norbo »

Try to cast it to an EntityCollidable; it has an Entity property. EntityCollidable is a BroadPhaseEntry that acts as the collision proxy of an entity in the broad phase (entity.CollisionInformation).
Oh, and thanks for the quick and helpful answers to my previous questions :D
No problem :)
Post Reply