RealtimeBody

class in Eddie

Description

Extends AbstractBody.

The NPC's realtime body. Just a capsule for the Rigidbody2D.

Constructors

RealtimeBody(Rigidbody2D rigidbody)
Parameter Description
rigidbody The Rigidbody2D attached to the NPC.

Properties

Property Description
Size The size of the body.
Velocity The velocity of the rigidbody.
Position The position of the rigidbody.
Drag Liear drag of the rigidbody.
Gravity The gravity scale of the rigidbody.

Methods

Method Description
getDeltaTime Returns the actual Time.deltaTime.
addForce Adds force to the rigidbody.