NudgeBody

represents a physics body that uses the nudge physics system

Members

Functions

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

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

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

Properties

inertia
float inertia [@property getter]

gets the body's moment of inertia

inertia
float inertia [@property setter]

sets the body's moment of inertia

mass
float mass [@property getter]

gets the body's mass

mass
float mass [@property setter]

sets the body's mass

Variables

physics_synced
bool physics_synced;

whether this body is currently in sync with the physics system

Inherited Members

From Component

__anonymous
mixin Reflect
Undocumented in source.
entity
Entity entity;

owner entity

setup
void setup()

initialize the component. entity is already set.

destroy
void destroy()

release resources and clean up

transform
Transform transform [@property getter]

forward to entity.transform

From Updatable

update
void update()
Undocumented in source.

Meta