ApplyHavokImpulse - ObjectReference

Revision as of 14:54, 11 November 2011 by imported>Cdcooley (Reverted edits by Scornett-Bot (talk) to last revision by Jlundin)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: ObjectReference Script

Applies a Havok impulse force to this object of the specified direction and magnitude.

Syntax

Function ApplyHavokImpulse(float afX, float afY, float afZ, float afMagnitude) native

Parameters

  • afX: X component of the force vector.
  • afY: Y component of the force vector.
  • afZ: Z component of the force vector.
  • afMagnitude: The magnitude of the force vector - how hard to hit this object.

Return Value

None.

Examples

; Apply a physical force along the x axis with a magnitude of 5 to a cheese wheel
CheeseWheel.ApplyHavokImpulse(1.0, 0.0, 0.0, 5.0)

See Also