|
TorqueScript Reference
|
Functions | |
| String | MatrixCreate (posVec, rotVec) |
| String | MatrixCreateFromEuler (rotVec) |
| String | MatrixMulPoint (transform, point) |
| String | MatrixMultiply (transformA, transformB) |
| String | MatrixMulVector (transform, vector) |
| String MatrixCreate | ( | posVec | , |
| rotVec | |||
| ) |
Use the matrixCreate function to create a transform matrix from a three-element floating-point translation vector and a four-element floating-point rotation vector.
| posVec | A three-element floating-point translation vector: PosY PosZ. |
| rotVec | A four-element floating-point rotation vector: RotY RotZ. |
| These | re rotations about the specified axes. |
| String MatrixCreateFromEuler | ( | rotVec | ) |
Use the MatrixCreateFromEuler function to calculate a transform matrix from a three-element floating-point rotation vector.
| rotVec | A three-element floating-point rotation vector: RotY RotZ. These are rotations about the specified axes. |
| String MatrixMulPoint | ( | transform | , |
| point | |||
| ) |
Use the MatrixMulPoint function to multiply a seven element transform matrix by a three element point vector, producing a three element position vector.
| transform | A seven-element transform matrix. |
| point | A three-element point/position vector. |
| String MatrixMultiply | ( | transformA | , |
| transformB | |||
| ) |
Use the MatrixMultiply function to multiply two seven-element transform matrices to produce a new seven element matrix.
| transformA | A seven-element transform matrix of the form PosY PosZ RotX RotY RotZ theta. |
| transformB | A seven-element transform matrix of the form PosY PosZ RotX RotY RotZ theta. |
| String MatrixMulVector | ( | transform | , |
| vector | |||
| ) |
Use the MatrixMulVector function to multiply a seven-element transform matrix with a three-element matrix.
| transform | A seven-element transform matrix of the form PosY PosZ RotX RotY RotZ theta. |
| vector | A three-element vector. |
1.8.10