RigidBody Struct Reference
[Physics]

Inherits PhysicsObject.

Inherited by RigidBodyImpl.

List of all members.

Public Methods

virtual void setMassFromHelper (MassHelper *helper)=0
virtual void setMass (Float mass)=0
virtual void setInertiaAsSolidBox (Float x, Float y, Float z)=0
virtual void setInertiaAsSolidCylinder (Float radius, Float width)=0
virtual void setInertiaAsSolidSphere (Float radius)=0
virtual Float getMass () const=0
virtual Vector3 getInertia () const=0
virtual void setPosition (Float x, Float y, Float z)=0
virtual void setRotation (const Quaternion &q)=0
virtual void setAngleAxisRotation (Float angle, Float ax, Float ay, Float az)=0
virtual void setEulerRotation (Float h, Float p, Float r)=0
virtual Vector3 getPosition () const=0
virtual Quaternion getRotation () const=0
virtual void setAngularVelocity (Float x, Float y, Float z)=0
virtual void setLinearVelocity (Float x, Float y, Float z)=0
virtual void zeroVelocity ()=0
virtual Vector3 getAngularVelocity () const=0
virtual Vector3 getLinearVelocity () const=0
virtual void applyForce (Float fx, Float fy, Float fz)=0
virtual void applyLocalForceAtLocalPos (Float fx, Float fy, Float fz, Float x, Float y, Float z)=0
virtual void applyTorque (Float tx, Float ty, Float tz)=0
virtual Matrix44 getMatrix () const=0


Detailed Description

A rigid body simulation.


Member Function Documentation

virtual void RigidBody::applyForce Float    fx,
Float    fy,
Float    fz
[pure virtual]
 

Apply a force in world coordinates on the body center of mass.

virtual void RigidBody::applyLocalForceAtLocalPos Float    fx,
Float    fy,
Float    fz,
Float    x,
Float    y,
Float    z
[pure virtual]
 

Apply a force in a specific point on the body, with both specified in the body's local coordinate space.

virtual void RigidBody::applyTorque Float    tx,
Float    ty,
Float    tz
[pure virtual]
 

Apply a torque on the body.

virtual Vector3 RigidBody::getAngularVelocity   const [pure virtual]
 

Get the angular velocity of the body.

virtual Vector3 RigidBody::getInertia   const [pure virtual]
 

Get the tensor of inertia for the body.

virtual Vector3 RigidBody::getLinearVelocity   const [pure virtual]
 

Get the linear velocity of the body.

virtual Float RigidBody::getMass   const [pure virtual]
 

Get the mass of the body.

virtual Matrix44 RigidBody::getMatrix   const [pure virtual]
 

Retrieve the current transform matrix for the body.

virtual Vector3 RigidBody::getPosition   const [pure virtual]
 

Get the position of the body.

virtual Quaternion RigidBody::getRotation   const [pure virtual]
 

Get the rotation of the body.

virtual void RigidBody::setAngleAxisRotation Float    angle,
Float    ax,
Float    ay,
Float    az
[pure virtual]
 

Set the orientation of the body from an angle-axis representation.

virtual void RigidBody::setAngularVelocity Float    x,
Float    y,
Float    z
[pure virtual]
 

Set the angular velocity of the body.

virtual void RigidBody::setEulerRotation Float    h,
Float    p,
Float    r
[pure virtual]
 

Set the orientation of the body from a euler representation.

virtual void RigidBody::setInertiaAsSolidBox Float    x,
Float    y,
Float    z
[pure virtual]
 

Calculate the inertia for a solid box of the given dimensions.

virtual void RigidBody::setInertiaAsSolidCylinder Float    radius,
Float    width
[pure virtual]
 

Calculate the inertia for a solid cylinder with the given radius and thickness. By default, the cylinder is aligned with the X axis.

virtual void RigidBody::setInertiaAsSolidSphere Float    radius [pure virtual]
 

Calculate the inertia for a solid sphere with the given radius.

virtual void RigidBody::setLinearVelocity Float    x,
Float    y,
Float    z
[pure virtual]
 

Set the linear velocity of the body.

virtual void RigidBody::setMass Float    mass [pure virtual]
 

Specify the mass of the body.

virtual void RigidBody::setMassFromHelper MassHelper   helper [pure virtual]
 

Specify the mass and inertia of the body from a helper.

virtual void RigidBody::setPosition Float    x,
Float    y,
Float    z
[pure virtual]
 

Set the position of the body.

virtual void RigidBody::setRotation const Quaternion   q [pure virtual]
 

Set the orientation of the body from a quaternion representation.

virtual void RigidBody::zeroVelocity   [pure virtual]
 

Zero out all velocities of the body.


The documentation for this struct was generated from the following file:


Flat Four Engine
Copyright (C) 2001 by 379, Inc.
This page generated by Doxygen