NetworkRigidBody2D
Inherits: RigidBody2D
A rollback / state synchronizer class for RigidBody2D. Set state property path to physics_state to synchronize the state of this body.
Properties
| Type | Name | Default |
|---|---|---|
| PhysicsDirectBodyState2D | direct_state | |
| Array | physics_state |
Methods
| Return Type | Name |
|---|---|
| Array | get_state() |
| void | set_state(Array remote_state) |
Constants
ORIGIN = 0
ROT = 1
LIN_VEL = 2
ANG_VEL = 3
SLEEPING = 4
Property Descriptions
PhysicsDirectBodyState2D direct_state
The body's direct state, as reported by the physics server.
Note: this is fetched on access instead of being cached, so that the handle cannot go stale after the body is freed.
Array physics_state
No description provided.
Method Descriptions
Array get_state ( )
No description provided.
void set_state ( Array remote_state )
No description provided.