|
Lua API
0.4.0
Game Engine
|
Functions | |
| vec3 (float x, float y, float z) | |
| Creates a 3D vector. More... | |
| length (vec3) | |
| Calculates the length of a 3D vector. More... | |
| normalize (vec3) | |
| Normalizes a vector. More... | |
| dot (vecA, vecB) | |
| This function calculates the dot product of two vectors. More... | |
| cross (vecA, vecB) | |
| This function calculates the cross product of two vectors. More... | |
| getBehaviorVariable (object, behaviorId,"variableName") | |
| setBehaviorVariable (object, behaviorId,"variableName", value) | |
| cross | ( | vecA | , |
| vecB | |||
| ) |
This function calculates the cross product of two vectors.
| vecA | The first vector. |
| vecB | The second vector. |
| dot | ( | vecA | , |
| vecB | |||
| ) |
This function calculates the dot product of two vectors.
| vecA | The first vector. |
| vecB | The second vector. |
| getBehaviorVariable | ( | object | , |
| behaviorId | , | ||
| "variableName" | |||
| ) |
| length | ( | vec3 | ) |
Calculates the length of a 3D vector.
| vec3 | The 3D vector to use. |
| normalize | ( | vec3 | ) |
Normalizes a vector.
This function takes the input vector and transforms it to a new vector with the length 1.0f.
| vec3 | The vector to normalize. |
| setBehaviorVariable | ( | object | , |
| behaviorId | , | ||
| "variableName" | , | ||
| value | |||
| ) |
| vec3 | ( | float | x, |
| float | y, | ||
| float | z | ||
| ) |
Creates a 3D vector.
| x | The X value |
| y | The Y value |
| z | The Z value |