PhysicsManager

represents a manager for physics bodies

Members

Functions

destroy
void destroy()
Undocumented in source. Be warned that the author may not have intended to support it.
raycast
Nullable!RaycastResult raycast(Vector3 start, Vector3 direction, float dist)

cast a ray of a given length in a given direction and return the result. null if no hits.

raycast_from
Nullable!RaycastResult raycast_from(PhysicsBody source, Vector3 offset, Vector3 direction, float dist)

raycast from a physics body in a certain direction, excluding the source body

setup
void setup()
Undocumented in source. Be warned that the author may not have intended to support it.
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]

the total number of bodies in this physics world

dynamic_body_count
size_t dynamic_body_count [@property getter]

the number of dynamic bodies in this physics world

static_body_count
size_t static_body_count [@property getter]

the number of static bodies in this physics world

Variables

gravity
Vector3 gravity;

gravity in the physics world

max_collisions
int max_collisions;

the maximum number of collisions to support in this world

pos_correction_iterations
int pos_correction_iterations;

position correction iterations used by physics engine

vel_correction_iterations
int vel_correction_iterations;

velocity correction iterations used by physics engine

Inherited Members

From Manager

scene
Scene scene;

set when attached to a scene

setup
void setup()

performs any setup needed for this manager

update
void update()

updates this manager

destroy
void destroy()

frees resources used by this manager

Meta