Mindshifter.CameraSpring Class Reference

CameraSpring is a wrapper for a simple spring with an implicit mass of 1, allowing cameras to perform smooth transitional movement for eye and target positions. More...

List of all members.

Public Member Functions

 CameraSpring ()
 Creates a new instance of CameraSpring.
void Update (float elapsed)
 Updates the spring based on the elapsed time.

Properties

Vector3 Origin [get, set]
 Gets or sets the spring's origin point.
Vector3 Position [get]
 Gets the spring's position.
Vector3 Velocity [get]
 Gets the spring's velocity.
float Stiffness [get, set]
 Gets or sets the spring's stiffness.
float Damping [get, set]
 Gets or sets the spring's damping coefficient.

Private Attributes

Vector3 mOrigin
Vector3 mPosition
Vector3 mVelocity
float mStiffness
float mDamping


Detailed Description

CameraSpring is a wrapper for a simple spring with an implicit mass of 1, allowing cameras to perform smooth transitional movement for eye and target positions.

Definition at line 10 of file CameraSpring.cs.


Constructor & Destructor Documentation

Mindshifter.CameraSpring.CameraSpring (  ) 

Creates a new instance of CameraSpring.

Definition at line 65 of file CameraSpring.cs.

References Mindshifter.CameraSpring.mDamping, and Mindshifter.CameraSpring.mStiffness.


Member Function Documentation

void Mindshifter.CameraSpring.Update ( float  elapsed  ) 

Updates the spring based on the elapsed time.

Parameters:
elapsed The elapsed time in seconds since the last call to Update()

Definition at line 75 of file CameraSpring.cs.

References Mindshifter.CameraSpring.mDamping, Mindshifter.CameraSpring.mOrigin, Mindshifter.CameraSpring.mPosition, Mindshifter.CameraSpring.mStiffness, and Mindshifter.CameraSpring.mVelocity.

Referenced by Mindshifter.OrbitCamera.Update().


Member Data Documentation

Vector3 Mindshifter.CameraSpring.mOrigin [private]

Definition at line 12 of file CameraSpring.cs.

Referenced by Mindshifter.CameraSpring.Update().

Vector3 Mindshifter.CameraSpring.mPosition [private]

Definition at line 13 of file CameraSpring.cs.

Referenced by Mindshifter.CameraSpring.Update().

Vector3 Mindshifter.CameraSpring.mVelocity [private]

Definition at line 14 of file CameraSpring.cs.

Referenced by Mindshifter.CameraSpring.Update().

float Mindshifter.CameraSpring.mStiffness [private]

Definition at line 16 of file CameraSpring.cs.

Referenced by Mindshifter.CameraSpring.CameraSpring(), and Mindshifter.CameraSpring.Update().

float Mindshifter.CameraSpring.mDamping [private]

Definition at line 17 of file CameraSpring.cs.

Referenced by Mindshifter.CameraSpring.CameraSpring(), and Mindshifter.CameraSpring.Update().


Property Documentation

Vector3 Mindshifter.CameraSpring.Origin [get, set]

Gets or sets the spring's origin point.

Definition at line 23 of file CameraSpring.cs.

Referenced by Mindshifter.OrbitCamera.Update().

Vector3 Mindshifter.CameraSpring.Position [get]

Gets the spring's position.

Definition at line 32 of file CameraSpring.cs.

Vector3 Mindshifter.CameraSpring.Velocity [get]

Gets the spring's velocity.

Definition at line 40 of file CameraSpring.cs.

float Mindshifter.CameraSpring.Stiffness [get, set]

Gets or sets the spring's stiffness.

Definition at line 48 of file CameraSpring.cs.

float Mindshifter.CameraSpring.Damping [get, set]

Gets or sets the spring's damping coefficient.

Definition at line 57 of file CameraSpring.cs.


The documentation for this class was generated from the following file:
Generated on Mon Mar 31 03:29:21 2008 for Cameras by  doxygen 1.5.1-p1