MathEngine
Home Page       Structures       File List       Functions and Macros      

MdtBody Struct Reference

MdtBody represents a physical body in a world simulation. More...

#include <MdtTypes.h>

List of all members.

Public Attributes

MdtKeaBody keaBody
 Kea body data. More...

MdtKeaTransformation TM
 4x4 transformation matrix. More...

MeVector4 impulseLinear
 Linear Impulse accumulator. More...

MeVector4 impulseAngular
 Angular Impulse accumulator. More...

int impulseAdded
 Flag to indicate an impulse has been added to this body this time-step. More...

MdtWorldID world
 The world the body is in. More...

MdtBody* next
 Next MdtBody. More...

MdtBody** tome
 Address of the next pointer in the previous MdtBody. More...

void* userData
 User data. More...

char name [32]
 The user can optionally give the body a name. More...

int arrayId
 Index into the corresponding Kea body array. More...

MeReal mass
 Mass in kilogrammes. More...

MeReal damping
 Velocity damping: 0 for no damping. More...

MeReal angularDamping
 Angular velocity damping: 0 for no damping. More...

MdtCListNodeconstraintList
 A body's constraints may include joints or contacts. More...

int enabledTime
 Number of steps that a body has been enabled; -1 if object is disabled. More...


Detailed Description

MdtBody represents a physical body in a world simulation.


Member Data Documentation

MdtKeaTransformation MdtBody::TM

4x4 transformation matrix.

MeReal MdtBody::angularDamping

Angular velocity damping: 0 for no damping.

int MdtBody::arrayId

Index into the corresponding Kea body array.

MdtCListNode * MdtBody::constraintList

A body's constraints may include joints or contacts.

MeReal MdtBody::damping

Velocity damping: 0 for no damping.

int MdtBody::enabledTime

Number of steps that a body has been enabled; -1 if object is disabled.

int MdtBody::impulseAdded

Flag to indicate an impulse has been added to this body this time-step.

MeVector4 MdtBody::impulseAngular

Angular Impulse accumulator.

Converted to torque and added to torque accumulator at step time

MeVector4 MdtBody::impulseLinear

Linear Impulse accumulator.

Converted to force and added to force accumulator at step time

MdtKeaBody MdtBody::keaBody

Kea body data.

MeReal MdtBody::mass

Mass in kilogrammes.

char MdtBody::name[32]

The user can optionally give the body a name.

This is very useful when used in conjunction with the logging functions.

MdtBody * MdtBody::next

Next MdtBody.

MdtBody ** MdtBody::tome

Address of the next pointer in the previous MdtBody.

void * MdtBody::userData

User data.

This will not be changed from within the toolkit

MdtWorldID MdtBody::world

The world the body is in.


The documentation for this struct was generated from the following file:
MathEngine Dynamics Toolkit - Version 0.0.5 Alpha - Reference Manual generated using doxygen at Wed Oct 11 00:34:51 2000

Copyright MathEngine PLC 2000, all rights reserved.