13 lines
649 B
Plaintext
13 lines
649 B
Plaintext
#title ApplyActorImpulseLocal [RCBasic Doc]
|
|
#header sub ApplyActorImpulseLocal( 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 ApplyActorImpulseWorld ApplyActorForceLocal ApplyActorForceWorld
|
|
|