Provides methods used for setting the immovable properties of an Arcade Physics Body.
- Since: 3.0.0
- Source: src/physics/arcade/components/Immovable.js (Line 7)
Methods
-
setImmovable( [value])
-
Sets if this Body can be separated during collisions with other bodies.
When a body is immovable it means it won't move at all, not even to separate it from collision overlap. If you just wish to prevent a body from being knocked around by other bodies, see the
setPushable
method instead.Parameters:
Name Type Argument Default Description value
boolean <optional>
true Sets if this body will be separated during collisions with other bodies.
- Since: 3.0.0
- Source: src/physics/arcade/components/Immovable.js (Line 15)
Returns:
This Game Object.