Page 1 of 1
How to use the btCollisionObject::m_collisionFlags ?
Posted: Fri Nov 24, 2006 8:51 am
by sssa2000
i think this flag is set the object whether or not be collision.
but i have no idea that how to set the flag.
for example,i have 3 object,i want object1 can not collision with object2,
but object1 can collision object3, how can i set the flag?
thanks!
Re: How to use the btCollisionObject::m_collisionFlags ?
Posted: Fri Nov 24, 2006 1:02 pm
by Erwin Coumans
For now, please try using collisionFilterGroup/collisionFilterMask, or override the virtual 'needsCollision' in your derived version of btCollisionDispatcher.
See
http://continuousphysics.com/Bullet/php ... .php?t=712
I plan on adding a 'nearCollisionCallback', for better control.
Thanks for the feedback,
Erwin
sssa2000 wrote:i think this flag is set the object whether or not be collision.
but i have no idea that how to set the flag.
for example,i have 3 object,i want object1 can not collision with object2,
but object1 can collision object3, how can i set the flag?
thanks!
Re: How to use the btCollisionObject::m_collisionFlags ?
Posted: Mon Nov 27, 2006 2:54 am
by sssa2000
Erwin Coumans wrote:
I plan on adding a 'nearCollisionCallback', for better control.
Thanks for the feedback,
Erwin
that is really good , if the nearCollisionCallback is add to Bullet,
i am very look forward to that!
thanks!