Remove a collider from the body To remove a collider, you need to specify its pointer. * @param collider The pointer of the collider you want to remove */
| 721 | * @param collider The pointer of the collider you want to remove |
| 722 | */ |
| 723 | void RigidBody::removeCollider(Collider* collider) { |
| 724 | |
| 725 | // Awake all the sleeping neighbor bodies of the current one |
| 726 | awakeNeighborDisabledBodies(); |
| 727 | |
| 728 | // Remove the collision shape |
| 729 | Body::removeCollider(collider); |
| 730 | } |
| 731 | |
| 732 | // Set the variable to know if the gravity is applied to this rigid body |
| 733 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected