12 lines
648 B
Plaintext
12 lines
648 B
Plaintext
#title applyActorImpulseWorld [RCBasic Doc]
|
|
#header sub applyActorImpulseWorld( actor, x, y, z, rel_x, rel_y, rel_z)
|
|
|
|
Applies an impulse to an actor at a specific point. Unlike ApplyActorCentralImpulse(local/world), which applies impulse only at the center of mass (affecting linear velocity), this can generate both linear motion and rotation (torque), depending on where the force is applied relative to the center of mass.
|
|
|
|
#list
|
|
#li x,y,z - direction of the impulse
|
|
#li rel_x, rel_y, rel_z - position to apply the force to relative to the center of mass
|
|
#/list
|
|
|
|
#ref ApplyActorImpulseLocal ApplyActorForceLocal ApplyActorForceWorld
|