Combining collision flag
Posted: Thu Jan 31, 2019 10:21 pm
is it possible to combine two collision flags in one object?, for e.g.
but when I do so, it seems only Material Callback take effect, I want to have a kinematic object but also have contact callback capabilities, I know that the easiest way is that you define a material callback on an opposing object, but in this case, I would like to combine it with kinematic object, please help
thank you
Code: Select all
mBody->setCollisionFlags(mBody->getCollisionFlags() | btCollisionObject::CF_CUSTOM_MATERIAL_CALLBACK | btCollisionObject::CF_KINEMATIC_OBJECT);
thank you