class StereoCamera3D
package away3d.stereo
extends Camera3D › Entity › ObjectContainer3D › Object3D › NamedAssetBase
@:directlyUsedAvailable on all platforms
Constructor
Variables
Inherited Variables
Defined by Camera3D
Defined by Entity
Defined by ObjectContainer3D
Defined by Object3D
Defined by NamedAssetBase
Inherited Methods
Defined by Camera3D
@:value({ v : null })getRay(nX:Float, nY:Float, sZ:Float, ?v:Vector3D):Vector3D
Calculates the ray in scene space from the camera to the given normalized coordinates in screen space.
Parameters:
nX | The normalised x coordinate in screen space, -1 corresponds to the left edge of the viewport, 1 to the right. |
|---|---|
nY | The normalised y coordinate in screen space, -1 corresponds to the top edge of the viewport, 1 to the bottom. |
sZ | The z coordinate in screen space, representing the distance into the screen. |
v | The destination Vector3D object |
Returns:
The ray from the camera to the scene space position of the given screen coordinates.
@:value({ v : null })project(point3d:Vector3D, ?v:Vector3D):Vector3D
Calculates the normalised position in screen space of the given scene position.
Parameters:
point3d | the position vector of the scene coordinates to be projected. |
|---|---|
v | The destination Vector3D object |
Returns:
The normalised screen position of the given scene coordinates.
@:value({ v : null })unproject(nX:Float, nY:Float, sZ:Float, ?v:Vector3D):Vector3D
Calculates the scene position of the given normalized coordinates in screen space.
Parameters:
nX | The normalised x coordinate in screen space, -1 corresponds to the left edge of the viewport, 1 to the right. |
|---|---|
nY | The normalised y coordinate in screen space, -1 corresponds to the top edge of the viewport, 1 to the bottom. |
sZ | The z coordinate in screen space, representing the distance into the screen. |
v | The destination Vector3D object |
Returns:
The scene position of the given screen coordinates.
Defined by Entity
getEntityPartitionNode():EntityNode
Gets a concrete EntityPartition3DNode subclass that is associated with this Entity instance
Defined by ObjectContainer3D
addChild(child:ObjectContainer3D):ObjectContainer3D
Adds a child ObjectContainer3D to the current object. The child's transformation will become relative to the current object's transformation.
Parameters:
child | The object to be added as a child. |
|---|
Returns:
A reference to the added child object.
addChildren(childarray:Vector<ObjectContainer3D>):Void
Adds an array of 3d objects to the scene as children of the container
Parameters:
...childarray | An array of 3d objects to be added |
|---|
clone():Object3D
Clones this ObjectContainer3D instance along with all it's children, and returns the result (which will be a copy of this container, containing copies of all it's children.)
disposeWithChildren():Void
Disposes the current ObjectContainer3D including all of its children. This is a merely a convenience method.
getChildAt(index:Int):ObjectContainer3D
Retrieves the child object at the given index.
Parameters:
index | The index of the object to be retrieved. |
|---|
Returns:
The child object at the given index.
removeChild(child:ObjectContainer3D):Void
Removes a 3d object from the child array of the container
Parameters:
child | The 3d object to be removed |
|---|
Throws:
Error | ObjectContainer3D.removeChild(null) |
|---|
removeChildAt(index:Int):Void
Removes a 3d object from the child array of the container
Parameters:
index | Index of 3d object to be removed |
|---|
Defined by Object3D
@:value({ v : null })getPosition(?v:Vector3D):Vector3D
Defines the position of the 3d object, relative to the local coordinates of the parent ObjectContainer3D.
@return
Parameters:
v | the destination Vector3D |
|---|
moveBackward(distance:Float):Void
Moves the 3d object backwards along it's local z axis
Parameters:
distance | The length of the movement |
|---|
moveDown(distance:Float):Void
Moves the 3d object backwards along it's local y axis
Parameters:
distance | The length of the movement |
|---|
moveForward(distance:Float):Void
Moves the 3d object forwards along it's local z axis
Parameters:
distance | The length of the movement |
|---|
moveLeft(distance:Float):Void
Moves the 3d object backwards along it's local x axis
Parameters:
distance | The length of the movement |
|---|
movePivot(dx:Float, dy:Float, dz:Float):Void
Moves the local point around which the object rotates.
Parameters:
dx | The amount of movement along the local x axis. |
|---|---|
dy | The amount of movement along the local y axis. |
dz | The amount of movement along the local z axis. |
moveRight(distance:Float):Void
Moves the 3d object forwards along it's local x axis
Parameters:
distance | The length of the movement |
|---|
moveTo(dx:Float, dy:Float, dz:Float):Void
Moves the 3d object directly to a point in space
Parameters:
dx | The amount of movement along the local x axis. |
|---|---|
dy | The amount of movement along the local y axis. |
dz | The amount of movement along the local z axis. |
moveUp(distance:Float):Void
Moves the 3d object forwards along it's local y axis
Parameters:
distance | The length of the movement |
|---|
pitch(angle:Float):Void
Rotates the 3d object around it's local x-axis
Parameters:
angle | The amount of rotation in degrees |
|---|
roll(angle:Float):Void
Rotates the 3d object around it's local z-axis
Parameters:
angle | The amount of rotation in degrees |
|---|
rotateTo(ax:Float, ay:Float, az:Float):Void
Rotates the 3d object directly to a euler angle
Parameters:
ax | The angle in degrees of the rotation around the x axis. |
|---|---|
ay | The angle in degrees of the rotation around the y axis. |
az | The angle in degrees of the rotation around the z axis. |
scale(value:Float):Void
Appends a uniform scale to the current transformation.
Parameters:
value | The amount by which to scale. |
|---|
translate(axis:Vector3D, distance:Float):Void
Moves the 3d object along a vector by a defined length
Parameters:
axis | The vector defining the axis of movement |
|---|---|
distance | The length of the movement |
yaw(angle:Float):Void
Rotates the 3d object around it's local y-axis
Parameters:
angle | The amount of rotation in degrees |
|---|