CreateForwardVector
Appearance
| Environment: | Mission Scripting | |
|---|---|---|
| Function: | CreateForwardVector | |
| Function Description: | Converts a heading in degrees into a forward Vec3 vector. | |
| File Location: | cmm.positionFunctions.lua | |
| Syntax: | CMM.CreateForwardVector( number heading ) | |
| Return Value: | table | |
| Parameters: | Name | Description |
| heading | Heading in degrees (0 = North, 90 = East, etc.) | |
| Example: | local dir = CMM.CreateForwardVector(45) | |
| Example Description: | Returns a vector pointing northeast (x≈0.7071, z≈0.7071). | |
| Related Functions: | ||
| Notes: | ||