Page 1 of 1

Get The Entity Hit By A ConvexCast

Posted: Sat Apr 18, 2015 9:43 pm
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

Re: Get The Entity Hit By A ConvexCast

Posted: Sat Apr 18, 2015 10:34 pm
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 :)