Back to Node List
World Space View Dir Node
The World Space View Dir node calculates a non-normalized direction in world space from a position in object/local space given by its Input towards the camera. This node will also return the direction from the current game object to the camera if Input is left unconnected and its default internal value of (0,0,0,1) is used.
Node Parameter |
Description |
Default Value
|
Input
|
Position in object/local space. Only visible if the respective input port is not connected.
|
0,0,0,1
|
Input Port |
Description |
Type
|
Input
|
Position in object/local space.
|
Float4
|
Output Port |
Description |
Type
|
XYZ
|
Returns the non-normalized direction in world space from the specified position towards the camera.
|
Float3
|
X
|
Returns only the X component of the calculated direction.
|
Float
|
Y
|
Returns only the Y component of the calculated direction.
|
Float
|
Z
|
Returns only the Z component of the calculated direction.
|
Float
|
Back to Node List