|
setPosition( X, Y, Z );
setPosition( myVec3D ); |
Sets the position of the camera
|
|
getPosition(); |
Returns a Vec3D of the camera's current position.
|
|
setRotation( X, Y, Z );
setRotation( myVec3D ); |
This allows you to set how far the camera is rotated up (looking up), and how much the camera is rotated horizontally (looking left and right). The vector input should be in degrees.
|
|
getRotation(); |
Returns a Vec3D of the camera's current rotation. Units are in degrees.
|
|
setTarget( X, Y, Z );
setTarget( myVec3D ); |
Sets the target vector of the camera. NOTE: this is not the direction the camera is looking at, rather it is the direction, normalized, added to the position. You can think of it as a small ball fixed floating in front of your eyes.
|
|
getTarget(); |
Returns a Vec3D of the camera's current target. Target is normalized.
|
|
setLook( X, Y, Z );
setLook( myVec3D ); |
Rotates the camera to look in the direction of the vector.
|
|
lookAtPoint( X, Y, Z );
lookAtPoint( myVec3D ); |
Rotates the camera to look at a point in 3D space.
|
|
getLook(); |
Returns a Vec3D of the direction the camera is currently looking.
|
|
setUpVector( X, Y, Z );
setUpVector( myVec3D ); |
Changes the up vector of the camera. Most people will never need to change this.
|
|
getUpVector(); |
Returns a Vec3D of the up vector of the camera, by default it is (0.0, 1.0, 0.0).
|
|
setPerspective( fieldOfView,
aspectRatio,
nearClip,
farClip ); |
Sets the perspective of the scene.
|
|
setCenterOfRotation(myVec3D); |
Sets the point that the MAYA style camera rotates around and zooms towards. more...
|
|
setMaxVerticalAngle(angle); |
Sets the maximum amount you can look up or down. By default it is set to 89 degrees.
|