RigidBody2D.Mode/mode - multiple declarations
Function RigidBody2D.mode
The body's mode. See mode
for possible values.
Enum RigidBody2D.Mode
enum Mode
: int { ... }
Enum members
Name | Description |
---|---|
modeCharacter
|
Character mode. Similar to constant MODE_RIGID , but the body can not rotate.
|
modeKinematic
|
Kinematic mode. The body behaves like a KinematicBody2D , and must be moved by code.
|
modeRigid
|
Rigid mode. The body behaves as a physical object. It collides with other bodies and responds to forces applied to it. This is the default mode. |
modeStatic
|
Static mode. The body behaves like a StaticBody2D and does not move.
|