DynamicBody

Undocumented in source.
version(physics)
class DynamicBody : PhysicsBody {}

Constructors

this
this(float mass)
Undocumented in source.

Inherited Members

From PhysicsBody

physics_synced
bool physics_synced;

whether this body is currently in sync with the physics system

mass
float mass;
Undocumented in source.
max_speed
float max_speed;
Undocumented in source.
velocity
Vector3 velocity;
Undocumented in source.
angular_velocity
Vector3 angular_velocity;
Undocumented in source.
custom_gravity
bool custom_gravity;
Undocumented in source.
gravity
Vector3 gravity;
Undocumented in source.
BodyType
enum BodyType
Undocumented in source.
setup
void setup()
Undocumented in source. Be warned that the author may not have intended to support it.
apply_impulse
void apply_impulse(Vector3 value, Vector3 pos)

apply an impulse to the physics body

apply_force
void apply_force(Vector3 value, Vector3 pos)

apply a force to the physics body

sync_properties
void sync_properties()

notify physics engine about new physical properties, such as gravity

sync_colliders
void sync_colliders()

used to notify the physics engine to update colliders if they have changed

sync_transform
void sync_transform()

used to notify the physics engine when transform is directly modified

destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta