setDirection
setDirection
Description
Set the direction of an object, the positive z-axis points towards the given direction. The y-axis lies in the direction-up-plane. Note that the scale of the node is reset to 1 1 1.
Definition
setDirection(entityId transformId, float x, float y, float z, float upX, float upY, float upZ)
Arguments
| entityId | transformId | transformId |
|---|---|---|
| float | x | x |
| float | y | y |
| float | z | z |
| float | upX | upX |
| float | upY | upY |
| float | upZ | upZ |