Package | org.papervision3d.cameras |
Class | public class FreeCamera3D |
Inheritance | FreeCamera3D CameraObject3D DisplayObject3D DisplayObjectContainer3D flash.events.EventDispatcher |
Method | Defined by | ||
---|---|---|---|
FreeCamera3D(zoom:Number = 2, focus:Number = 100, initObject:Object = null)
The FreeCamera3D constructor lets you create a camera that views the area in the direction the camera is aimed.
| FreeCamera3D | ||
Adds a child DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObject3D | ||
Adds all the children of a DisplayObject3D instance to this DisplayObjectContainer instance.
| DisplayObjectContainer3D | ||
addCollada(filename:String, materials:MaterialsList = null, scale:Number = 1):void
This method has been deprecated.
| DisplayObjectContainer3D | ||
addGeometry(geometry:GeometryObject3D = null):void
Adds a geometry definition to the instance.
| DisplayObject3D | ||
childrenList():String
Returns a string value with the list of objects.
| DisplayObjectContainer3D | ||
copyPosition(reference:*):void
Copies the position information (x, y and z coordinates) from another object or Matrix3D.
| DisplayObject3D | ||
copyTransform(reference:*):void
Copies the transformation information (position, rotation and scale) from another object or Matrix3D.
| DisplayObject3D | ||
distanceTo(obj:DisplayObject3D):Number
Gets the distance to the position of the given object.
| DisplayObject3D | ||
getChildByName(name:String):DisplayObject3D
Returns the child display object that exists with the specified name.
| DisplayObjectContainer3D | ||
getMaterialByName(name:String):MaterialObject3D
Returns the material that exists with the specified name in the materials list.
| DisplayObject3D | ||
hitTestObject(obj:DisplayObject3D, multiplier:Number = 1):Boolean
Evaluates the display object to see if it overlaps or intersects with the obj display object.
| DisplayObject3D | ||
hitTestPoint(x:Number, y:Number, z:Number):Boolean
Evaluates the display object to see if it overlaps or intersects with the point specified by the x, y and z parameters.
| DisplayObject3D | ||
Make the object look at a specific position.
| DisplayObject3D | ||
materialsList():String
Returns a string value with the list of material names of the materials list.
| DisplayObject3D | ||
moveBackward(distance:Number):void
Translate the display object in the opposite direction it is facing, i.e.
| DisplayObject3D | ||
moveDown(distance:Number):void
Translate the display object downwards, with respect to the direction it is facing, i.e.
| DisplayObject3D | ||
moveForward(distance:Number):void
Translate the display object in the direction it is facing, i.e.
| DisplayObject3D | ||
moveLeft(distance:Number):void
Translate the display object lateraly, to the left of the direction it is facing, i.e.
| DisplayObject3D | ||
moveRight(distance:Number):void
Translate the display object lateraly, to the right of the direction it is facing, i.e.
| DisplayObject3D | ||
moveUp(distance:Number):void
Translate the display object upwards, with respect to the direction it is facing, i.e.
| DisplayObject3D | ||
pan(angle:Number):void
Rotate the camera in its horizontal plane.
| CameraObject3D | ||
pitch(angle:Number):void
Rotate the display object around its lateral or transverse axis —an axis running from the pilot's left to right in piloted aircraft, and parallel to the wings of a winged aircraft; thus the nose pitches up and the tail down, or vice-versa.
| DisplayObject3D | ||
[internal-use] Projects three dimensional coordinates onto a two dimensional plane to simulate the relationship of the camera to subject.
| DisplayObject3D | ||
Removes the specified child DisplayObject3D instance from the child list of the DisplayObjectContainer3D instance.
| DisplayObjectContainer3D | ||
removeChildByName(name:String):DisplayObject3D
Removes the child DisplayObject3D instance that exists with the specified name, from the child list of the DisplayObjectContainer3D instance.
| DisplayObjectContainer3D | ||
roll(angle:Number):void
Rotate the display object around the longitudinal axis —an axis drawn through the body of the vehicle from tail to nose in the normal direction of flight, or the direction the object is facing.
| DisplayObject3D | ||
tilt(angle:Number):void
Rotate the camera in its vertical plane.
| CameraObject3D | ||
toString():String
Returns a string value representing the three-dimensional position values of the display object instance.
| DisplayObject3D | ||
transformView(transform:Matrix3D = null):void
[internal-use] Transforms world coordinates into camera space.
| FreeCamera3D | ||
Move the object along a given direction.
| DisplayObject3D | ||
yaw(angle:Number):void
Rotate the display object around about the vertical axis —an axis drawn from top to bottom.
| DisplayObject3D |
Constant | Defined by | ||
---|---|---|---|
MESH_SORT_CENTER : uint = 1 [static]
tells Mesh3D's render() method to sort by measuring from the center of a triangle
| DisplayObject3D | ||
MESH_SORT_CLOSE : uint = 3 [static]
tells Mesh3D's render() method to sort by measuring from the closest point of a triangle
| DisplayObject3D | ||
MESH_SORT_FAR : uint = 2 [static]
tells Mesh3D's render() method to sort by measuring from the farthest point of a triangle
| DisplayObject3D | ||
TYPE : String = "FREECAMERA3D" [static]
| FreeCamera3D |
FreeCamera3D | () | constructor |
public function FreeCamera3D(zoom:Number = 2, focus:Number = 100, initObject:Object = null)
The FreeCamera3D constructor lets you create a camera that views the area in the direction the camera is aimed. Its initial position can be specified in the initObject.
Parameterszoom:Number (default = 2 ) — This value specifies the scale at which the 3D objects are rendered. Higher values magnify the scene, compressing distance. Use it in conjunction with focus.
|
|
focus:Number (default = 100 ) — This value is a positive number representing the distance of the observer from the front clipping plane, which is the closest any object can be to the camera. Use it in conjunction with zoom.
|
|
initObject:Object (default = null ) — An optional object that contains user defined properties with which to populate the newly created DisplayObject3D.
It includes x, y, z, rotationX, rotationY, rotationZ, scaleX, scaleY scaleZ and a user defined extra object.
If extra is not an object, it is ignored. All properties of the extra field are copied into the new instance. The properties specified with extra are publicly available.
The following initObject property is also recognized by the constructor:
|
transformView | () | method |
public override function transformView(transform:Matrix3D = null):void
[internal-use] Transforms world coordinates into camera space.
Parameterstransform:Matrix3D (default = null )
|
TYPE | constant |
public static const TYPE:String = "FREECAMERA3D"