Class c3dl.FreeCamera
Extends
c3dl.Camera.
c3dl.FreeCamera A camera which can be freely moved around in a scene.
Defined in: freecamera.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| 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.
|
|
|
setLookAtPoint(newVec)
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
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.