Terrain BroadPhaseEntry?

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
Peter Prins
Posts: 54
Joined: Fri Mar 11, 2011 11:44 pm

Terrain BroadPhaseEntry?

Post by Peter Prins »

Does the Terrain class have a BroadPhaseEntry? And if not, does that mean I have to do a ray-cast on it separately from the ray-cast on the space?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Terrain BroadPhaseEntry?

Post by Norbo »

The Terrain is, itself, a BroadPhaseEntry. Once added to the Space, you can raycast the space and it will find Terrains. The same goes for StaticMeshes, StaticGroups, and InstancedMeshes. Entities use the 'collision proxy' approach because the Entity class itself is primarily related to dynamic movement, not collision. Static stuff has no such extra logic, so no split is needed.
Post Reply