Skip to main content
Skip to main content

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

entityIdtransformIdtransformId
floatxx
floatyy
floatzz
floatupXupX
floatupYupY
floatupZupZ