Class Index | File Index

Classes


Class c3dl.FreeCamera


Extends c3dl.Camera.
c3dl.FreeCamera A camera which can be freely moved around in a scene.
Defined in: freecamera.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
Get the camera's angular velocity
 
Get the camera's linear velocity
 
pitch(angle)
Rotate around the Side Vector by a hard amount (No Animation).
 
roll(angle)
Rotate around the Dir Vector by a hard amount (No Animation).
 
rotateOnAxis(axisVec, angle)
Rotate camera on an Axis which is centered on the position of the camera.
 
setAngularVel(newVec)
Set a new Angular Veclocity that will be added to the rotation on every update.
 
setLinearVel(newVec)
Set a new linear velocity that will be added to the position on every update.
 
Set the point in space where the camera will look at (No Animation).
 
setPosition(newVec)
Set the new location of the camera.
 
setUpVector(newVec)
Set the orientation of Up (No Animation).
 
toString(delimiter)
Get a string representation of this camera.
 
yaw(angle)
Rotate around the Up Vector by a hard amount (No Animation).
Methods borrowed from class c3dl.Camera:
getDir, getFarClippingPlane, getFieldOfView, getLeft, getNearClippingPlane, getPosition, getUp, setFarClippingPlane, setFieldOfView, setNearClippingPlane
Class Detail
c3dl.FreeCamera()
Method Detail
{Array} getAngularVel()
Get the camera's angular velocity
Returns:
{Array}

{Array} getLinearVel()
Get the camera's linear velocity
Returns:
{Array}

pitch(angle)
Rotate around the Side Vector by a hard amount (No Animation).
Parameters:
{float} angle
in radians.

roll(angle)
Rotate around the Dir Vector by a hard amount (No Animation).
Parameters:
{float} angle
in radians.

rotateOnAxis(axisVec, angle)
Rotate camera on an Axis which is centered on the position of the camera.
Parameters:
{Array} axisVec
{float} angle
in radians.

setAngularVel(newVec)
Set a new Angular Veclocity that will be added to the rotation on every update.
Parameters:
{Array} newVec

setLinearVel(newVec)
Set a new linear velocity that will be added to the position on every update.
Parameters:
{Array} newVec
A vector which contains the direction and speed of the camera.

setLookAtPoint(newVec)
Set the point in space where the camera will look at (No Animation).
Parameters:
{Array} newVec
The new point the camera will look at.

setPosition(newVec)
Set the new location of the camera.
Parameters:
{Array} newVec
An absolute value of where to place the camera.

setUpVector(newVec)
Set the orientation of Up (No Animation).
Parameters:
{Array} newVec

{String} toString(delimiter)
Get a string representation of this camera.
Parameters:
{null|String} delimiter
A string which will separate values. Typically will be "," , "\n" or "<br />". If none is specified, "," will be used.
Returns:
{String} a string representation of this camera.

yaw(angle)
Rotate around the Up Vector by a hard amount (No Animation).
Parameters:
{float} angle
in radians.

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Feb 19 2010 17:58:41 GMT-0500 (EST)