While checking the code I found that is possible to create Static Bodies using a Body and setting it static: https://github.com/rustsim/nphysics/blob/master/src/object/body.rs#L14
Though until now in the examples I saw that all the static bodies are just collider.
There’s any the benefit to use a Body to represent static bodies?
There’s any down side on doing this?
Hi! The two main benefits of using a static Body are:
- You can change the status of a body from static to dynamic or kinematic after it has been added to the world.
- For simulations involving no colliders (for example to simulate a pendulum using joints only), it can be convenient to define a static body to which some joints will be attached.
The drownsides of using static bodies instead of colliders directly are some small memory and computational overheads.
Perfect and clear, Thanks!