Return type |
Description |
float3
|
view.position([int camIndex])
Returns the position of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns float3(infinity)
|
float3
|
view.velocity([int camIndex])
Returns the velocity of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns float3(0,0,0)
|
orientation
|
view.orientation([int camIndex])
Returns the orientation of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns the identity orientation
|
float3
|
view.axisSide([int camIndex])
Returns the side axis (left / right) of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns scene.axisSide()
|
float3
|
view.axisVertical([int camIndex])
Returns the vertical axis (down / up) of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns scene.axisVertical()
|
float3
|
view.axisDepth([int camIndex])
Returns the depth axis (backward / forward) of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns scene.axisDepth()
|
float3
|
view.axisLeft([int camIndex])
Returns the left direction axis of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns scene.axisLeft()
|
float3
|
view.axisRight([int camIndex])
Returns the right direction axis of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns scene.axisRight()
|
float3
|
view.axisDown([int camIndex])
Returns the down direction axis of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns scene.axisDown()
|
float3
|
view.axisUp([int camIndex])
Returns the up direction axis of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns scene.axisUp()
|
float3
|
view.axisBackward([int camIndex])
Returns the backward direction axis of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns scene.axisBackward()
|
float3
|
view.axisForward([int camIndex])
Returns the forward direction axis of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
If no cameras are registered, returns scene.axisForward()
|
float3
|
view.direction([int camIndex])
Returns the view vector of camera at index camIndex.
If camIndex is not specified, uses the default camera (index 0).
For example, will return view.axisForward() for Right-handed Y-Up and Left-handed Z-Up coordinate systems, and -view.axisForward() for Right-handed Z-Up and Left-handed Y-Up coordinate systems.
|