Changes

Jump to: navigation, search

Canvas3D JS Library

2,123 bytes removed, 18:41, 6 March 2009
Camera
== Camera ==
=== Pan Camera Class ===
* INCOMPLETE
 
=== Fixed Camera Class ===
* INCOMPLETE
 
=== Chase Camera Class ===
* INCOMPLETE
 
=== Free Camera Class ===
The Free Camera Class is a camera that can be translated and oriented. It cannot be attached to an item, rather, it can be moved separately by the user. The camera also supports velocities (without friction) that are applied to the object based on time. The Free Camera Class has the following Members:
 
* Getters
** getPosition() - '''Returns a Vector Object that represents the position of the Camera'''
** getUp() - '''Returns a Vector Object that represents the orientation of Up'''
** getDir() - '''Returns a Vector Object that is the direction the camera is facing'''
** getLeft() - '''Returns a Vector Object that represents the orientation of Left'''
** getLinearVel() - '''Returns a Vector that is the velocity that the camera is traveling at'''
** getAngularVel() - '''Returns a Vector that contains the rotation velocity around the local (x, y, z) axis of the camera'''
 
* Setters
** setPosition(vec) - '''Takes a Vector that sets the camera's position'''
** setLookAtPoint(vec) - '''Takes a Vector that represents the point the camera will look at'''
** setUpVector(vec) - '''Takes a vector that orients the camera Up'''
** setLinearVel(vec) - ''' Takes a vector that is the camera's linear velocity'''
** setAngularVec(vec) - '''Takes a vector that represents the camera's rotational velocity around local (x, y, z) axis'''
 
* Other Functions
** rotateOnAxis(axis, angle) - '''Takes a vector and a number that represents a relative rotation to the camera's orientation'''
** yaw(angle) - '''Takes a number that the camera will rotate around its Up vector'''
** roll(angle) - '''Takes a number that the camera will rotate around its direction vector'''
** pitch(angle) - '''Takes a number that the camera will rotate around its Left vector'''
** update(timeElapsed) - '''Takes a number that represents the amount of milliseconds that passed since the last call to update. This function updates the position and rotation based on the set velocities'''
== World Objects ==
1
edit

Navigation menu