Code: Select all
//! The body will come into contact, (so it will register that it hit something) but will not actually bounce back or something, just pass through. Like a ghost.
void disable_contact_response(){
physical_body->setCollisionFlags(physical_body->getCollisionFlags() | btCollisionObject::CF_NO_CONTACT_RESPONSE);
}