Body as sensor

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
saturn1
Posts: 34
Joined: Thu Dec 24, 2009 11:14 pm

Body as sensor

Post by saturn1 »

Hello,
i dont found the property issensor for a body.

Maybe the only way is with CollisionRules?

Can you enlighten me for this point?

Thank you
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: Body as sensor

Post by Norbo »

If you want to use an entity to collect contacts and fire events but not perform collision response, the proper way is indeed collision rules (a NoSolver relationship, specifically). More information can be found in the collision rules documentation and the CollisionFilteringDemo in the BEPUphysicsDemos.

The DetectorVolume can also be used if you have a static mesh where you only care about whether the object is touching/contained, and not about specific contact point locations, normals, and depths.
saturn1
Posts: 34
Joined: Thu Dec 24, 2009 11:14 pm

Re: Body as sensor

Post by saturn1 »

thank you :)
Post Reply