Logo Search packages:      
Sourcecode: blender version File versions

SM_FhObject Class Reference

#include <SM_FhObject.h>

Inheritance diagram for SM_FhObject:

SM_Object SM_MotionState

List of all members.

Detailed Description

SM_FhObject.h,v 1.6 2004/11/22 10:19:19 kester Exp


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. The Blender Foundation also sells licenses for use in proprietary software under the Blender License. See http://www.blender.org/BL/ for information about this.

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.


Definition at line 37 of file SM_FhObject.h.

Public Member Functions

void addAngularVelocity (const MT_Vector3 &ang_vel)
void addExternalAngularVelocity (const MT_Vector3 &ang_vel)
void addExternalLinearVelocity (const MT_Vector3 &lin_vel)
void addLinearVelocity (const MT_Vector3 &lin_vel)
void applyAngularImpulse (const MT_Vector3 &impulse)
void applyCenterForce (const MT_Vector3 &force)
void applyCenterImpulse (const MT_Vector3 &impulse)
void applyForceField (const MT_Vector3 &accel)
void applyImpulse (const MT_Point3 &attach, const MT_Vector3 &impulse)
void applyTorque (const MT_Vector3 &torque)
void calcXform ()
void clearCombinedVelocities ()
void clearForce ()
void clearMomentum ()
const MT_Vector3getAngularVelocity () const
SM_ClientObject * getClientObject ()
SM_ObjectgetDynamicParent ()
SM_FhObjectgetFhObject () const
const MT_Vector3getInvInertia () const
const MT_Matrix3x3getInvInertiaTensor () const
MT_Scalar getInvMass () const
const MT_Vector3getLinearVelocity () const
MT_Point3 getLocalCoord (const MT_Point3 &world) const
MT_Scalar getMargin () const
const SM_MaterialPropsgetMaterialProps () const
const double * getMatrix () const
void getMatrix (double *m) const
DT_ObjectHandle getObjectHandle () const
const MT_QuaterniongetOrientation () const
SM_ObjectgetParentObject () const
const MT_Point3getPosition () const
const MT_Vector3getRay () const
const MT_Vector3getRayDirection () const
const MT_Vector3getReactionForce () const
const MT_TransformgetScaledTransform () const
DT_ShapeHandle getShapeHandle () const
const SM_ShapePropsgetShapeProps () const
MT_Point3 getSpot () const
MT_Scalar getTime () const
virtual MT_Transform getTransform () const
MT_Vector3 getVelocity (const MT_Point3 &local) const
MT_Point3 getWorldCoord (const MT_Point3 &local) const
void integrateBackward (MT_Scalar timeStep, const MT_Vector3 &velocity, const MT_Quaternion &ang_vel)
void integrateForces (MT_Scalar timeStep)
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 integrateMomentum (MT_Scalar timeSteo)
bool isDynamic () const
bool isGhost () const
bool isRigidBody () const
void lerp (MT_Scalar t, const SM_MotionState &other)
void notifyClient ()
void proceedKinematic (MT_Scalar timeStep)
void registerCallback (SM_Callback &callback)
void relax ()
void resolveCombinedVelocities (const MT_Vector3 &lin_vel, const MT_Vector3 &ang_vel)
void restoreDynamics ()
void restoreMaterial ()
void resume (void)
void saveReactionForce (MT_Scalar timeStep)
void setAngularVelocity (const MT_Vector3 &ang_vel)
void setClientObject (SM_ClientObject *client_object)
void setExternalAngularVelocity (const MT_Vector3 &ang_vel)
void setExternalLinearVelocity (const MT_Vector3 &lin_vel)
void setLinearVelocity (const MT_Vector3 &lin_vel)
void setMargin (MT_Scalar margin)
void setOrientation (const MT_Quaternion &orn)
void setPosition (const MT_Point3 &pos)
void setRigidBody (bool is_rigid_body)
void setScaling (const MT_Vector3 &scaling)
void setTime (MT_Scalar time)
 SM_FhObject (DT_ShapeHandle rayshape, MT_Vector3 ray, SM_Object *parent_object)
void suspend (void)
void suspendDynamics ()
void suspendMaterial ()
void updateInvInertiaTensor ()

Static Public Member Functions

static DT_Bool boing (void *client_data, void *object1, void *object2, const DT_CollData *coll_data)
static DT_Bool fix (void *client_data, void *object1, void *object2, const DT_CollData *coll_data)
static DT_Bool ray_hit (void *client_data, void *object1, void *object2, const DT_CollData *coll_data)

Protected Attributes

MT_Vector3 m_ang_vel
MT_Vector3 m_lin_vel
MT_Quaternion m_orn
MT_Point3 m_pos
MT_Scalar m_time

Private Attributes

MT_Vector3 m_ray
MT_Vector3 m_ray_direction

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

Generated by  Doxygen 1.6.0   Back to index