C4 Engine
C4 Engine API Documentation

PhysicsController::WakeFieldRigidBodies

Defined in:  C4Physics.h
Wakes all rigid bodies affected by a force field.
Prototype

void WakeFieldRigidBodies(const Field *field);

Parameters
field The field node for which rigid bodies are awakened.
Description
The WakeFieldRigidBodies function searches for all rigid bodies that would be affected by the force field specified by the field parameter and awakens any that are currently asleep. For each rigid body that is awakened, all bodies reachable from that rigid body in the contact graph are also awakened recursively.
See Also

Field

Force