Proper object for light barrier or other sensors:ghost/rigid

goebeler
Posts: 2
Joined: Tue Mar 25, 2014 9:01 am

Proper object for light barrier or other sensors:ghost/rigid

Post by goebeler »

Hi all,

I am using bullet to creation simulations of production plants and need to model light barriers as well as other sensor types. The space coverd by a sensor is usually not an AABB but could be an almost arbitrary mesh (a cylinder in case of a light barrier, viewing frustum in case of a camera, ...).

Is it correct that btGostObjects only support AABB collisions? Should I use a btRigidBody instead and deactivate its collisions response?

Any recommendations?
Flix
Posts: 456
Joined: Tue Dec 25, 2007 1:06 pm

Re: Proper object for light barrier or other sensors:ghost/r

Post by Flix »

There is anther type of ghost object you can use for non aabb collision detection. Please search the wiki or the ghost object demo I posted in this forum long ago.

However for non moving bodies, an alternative is using a static or kinematic body with no collision response, and process the manifolds for contact info.
goebeler
Posts: 2
Joined: Tue Mar 25, 2014 9:01 am

Re: Proper object for light barrier or other sensors:ghost/r

Post by goebeler »

After some discussions with colleagues I decided to use rigid bodies because some of the sensors will be mounted on other gear so I'll need to define constraints on them and have them move around in the scene.