void RigidBodyBullet::main_shape_resetted() { if (get_main_shape()) btBody->setCollisionShape(get_main_shape()); else btBody->setCollisionShape(BulletPhysicsServer::get_empty_shape()); set_continuous_collision_detection(is_continuous_collision_detection_enabled()); // Reset }
void RigidBodyBullet::reload_body() { if (space) { space->remove_rigid_body(this); if (get_main_shape()) space->add_rigid_body(this); } }
void AreaBullet::main_shape_changed() { CRASH_COND(!get_main_shape()) btGhost->setCollisionShape(get_main_shape()); }