ScriptEvent:alignToAxis

From Mod Wiki
Revision as of 10:55, 5 November 2007 by Wizz (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Parameters

vector axis -- Vector to align the axis to.
integer index -- Index of the axis to align, 0 = Forward, 1 = Right, 2 = Up.

Result

None.

Supported By

idEntity

Comments

  • The vector passed in should be normalized.
  • Nothing will happen if index is out of range.

Functionality

Aligns the specified axis of the physics along the supplied vector.