PhysicsManager

represents a manager for physics bodies

Members

Functions

allocate
void allocate()

allocate resources to run physics

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

registers a body

sync_colliders
void sync_colliders(PhysicsBody body_comp)

sync a body's colliders in the physics engine, necessary when shapes change

sync_properties
void sync_properties(PhysicsBody body_comp)
Undocumented in source. Be warned that the author may not have intended to support it.
sync_transform
void sync_transform(PhysicsBody body_comp)
Undocumented in source. Be warned that the author may not have intended to support it.
unregister
void unregister(PhysicsBody body_comp)

unregisters a body

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

Properties

body_count
size_t body_count [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
dynamic_body_count
size_t dynamic_body_count [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
static_body_count
size_t static_body_count [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

get_current
PhysicsManager get_current(Scene scene)

get the nudge manager in a scene

install
void install(Scene scene)

enable a nudge manager in a scene

is_installed
bool is_installed(Scene scene)

checks whether this scene has a nudge manager installed

Static variables

max_collisions
int max_collisions;
Undocumented in source.

Inherited Members

From Manager

scene
Scene scene;

set when attached to a scene

update
void update()

updates this manager

destroy
void destroy()

frees resources used by this manager

Meta