Jump to content

Using Shapes without doing Physics Simulation for bodies


photo

Recommended Posts

Our scenario is that we need to use intersection tests with Body Shapes like

Object obj = engine.physics.getIntersection(p0, p1, ~0, ret);

But would not want the bodies to be physically simulated.

Based on Frustum's advice on another thread, one way of doing this would be to set the mass to zero and this works well for us.

My question is - is this efficient? i.e. will the Physics Engine early-out when it finds a body with zero mass?

Or is there a better way of doing this than setting the Mass to Zero?

 

Thanks,

Ashwin.

Link to comment
×
×
  • Create New...