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 |
Definition at line 10 of file CameraSpring.cs.
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.
void Mindshifter.CameraSpring.Update | ( | float | elapsed | ) |
Updates the spring based on the elapsed time.
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().
Vector3 Mindshifter.CameraSpring.mOrigin [private] |
Vector3 Mindshifter.CameraSpring.mPosition [private] |
Vector3 Mindshifter.CameraSpring.mVelocity [private] |
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().
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] |
Vector3 Mindshifter.CameraSpring.Velocity [get] |
float Mindshifter.CameraSpring.Stiffness [get, set] |
float Mindshifter.CameraSpring.Damping [get, set] |