LlVecNorm
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Contents |
Summary
Function: vector llVecNorm( vector vec );| 13 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
Returns the vector that is vec normalized (a unit vector sharing the same direction as vec).
| • vector | vec | – | Any valid vector |
Functionally equivalent to: vec / llVecMag(vec))
Caveats
- Will return <0.0, 0.0, 0.0> when <0.0, 0.0, 0.0> is given as input.
Important Issues
~ Search JIRA for related Bugs| | | SVC-4711 | [c] | llVecNorm returns zero vector as result when input is below a certain magnitude |
Deep Notes
Issues
~ Search JIRA for related Issues| | | SVC-4711 | [c] | llVecNorm returns zero vector as result when input is below a certain magnitude |
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

