Logo Search packages:      
Sourcecode: blender version File versions  Download package

SM_MotionState Class Reference

#include <SM_MotionState.h>

List of all members.


Detailed Description

Id
SM_MotionState.h 14444 2008-04-16 22:40:48Z hos

***** BEGIN GPL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL LICENSE BLOCK *****

Definition at line 34 of file SM_MotionState.h.


Public Member Functions

const MT_Vector3getAngularVelocity () const
const MT_Vector3getLinearVelocity () const
const MT_QuaterniongetOrientation () const
const MT_Point3getPosition () const
MT_Scalar getTime () const
virtual MT_Transform getTransform () const
void integrateBackward (MT_Scalar timeStep, const MT_Vector3 &velocity, const MT_Quaternion &ang_vel)
void integrateForward (MT_Scalar timeStep, const SM_MotionState &prev_state)
void integrateMidpoint (MT_Scalar timeStep, const SM_MotionState &prev_state, const MT_Vector3 &velocity, const MT_Quaternion &ang_vel)
void lerp (MT_Scalar t, const SM_MotionState &other)
void lerp (const SM_MotionState &prev, const SM_MotionState &next)
void setAngularVelocity (const MT_Vector3 &ang_vel)
void setLinearVelocity (const MT_Vector3 &lin_vel)
void setOrientation (const MT_Quaternion &orn)
void setPosition (const MT_Point3 &pos)
void setTime (MT_Scalar time)

Protected Attributes

MT_Vector3 m_ang_vel
MT_Vector3 m_lin_vel
MT_Quaternion m_orn
MT_Point3 m_pos
MT_Scalar m_time

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index