Sets if this Body can be pushed by another Body.
A body that cannot be pushed will reflect back all of the velocity it is given to the colliding body. If that body is also not pushable, then the separation will be split between them evenly.
If you want your body to never move or separate at all, see the setImmovable method.
Optionalvalue: boolean
Whether this body can be pushed by collisions with another Body. Default true.
This Game Object.
The Pushable component provides methods for controlling whether an Arcade Physics body can be displaced by other bodies during collision resolution. A pushable body will have velocity applied to it as a result of colliding with other bodies. A non-pushable body will instead reflect its received velocity back to the colliding body, effectively acting as an immovable surface for purposes of velocity transfer while still participating in positional separation. This component is mixed into Game Objects that use Arcade Physics.