GameEngine::PhysicsComponent Class Reference

#include <PhysicsComponent.h>

Inheritance diagram for GameEngine::PhysicsComponent:

Inheritance graph
[legend]
Collaboration diagram for GameEngine::PhysicsComponent:

Collaboration graph
[legend]
List of all members.

Detailed Description

The physical representation of a game object, simulated by the physics manager

Definition at line 32 of file PhysicsComponent.h.

Public Member Functions

 PhysicsComponent (PhysicsManager *physicsManager)
 PhysicsComponent (PhysicsManager *physicsManager, Vector3 initialPos, Quaternion initialOri, Vector3 initialLinVel, Vector3 initialAngVel, Vector3 initialLinAcc, Vector3 initialAngAc)
virtual ~PhysicsComponent ()
Vector3 getPosition ()
Quaternion getOrientation ()
Vector3 getLinearVelocity ()
PhysicsManagergetPhysicsManager ()

Protected Attributes

PhysicsManagermPhysicsManager
opal::Solid * mPhysicsEntity
Quaternion mInitialOri
Vector3 mInitialPos
Vector3 mInitialLinVel
Vector3 mInitialAngVel
Vector3 mInitialLinAcc
Vector3 mInitialAngAc


Constructor & Destructor Documentation

GameEngine::PhysicsComponent::PhysicsComponent ( PhysicsManager physicsManager  ) 

Constructor

Parameters:
physicsManager The physics manager which will control this object

Definition at line 26 of file PhysicsComponent.cpp.

GameEngine::PhysicsComponent::PhysicsComponent ( PhysicsManager physicsManager,
Vector3  initialPos,
Quaternion  initialOri,
Vector3  initialLinVel,
Vector3  initialAngVel,
Vector3  initialLinAcc,
Vector3  initialAngAc 
)

Constructor

Parameters:
physicsManager The physics manager which will control this object
initialPos Initial position
initialOri Initial orientation
initialLinVel Initial linear velocity
initialAngVel Initial angular velocity
initialLinAcc Initial linear acceleration
initialAngAc Initial angular acceleration

Definition at line 39 of file PhysicsComponent.cpp.

GameEngine::PhysicsComponent::~PhysicsComponent (  )  [virtual]

Destructor

Definition at line 58 of file PhysicsComponent.cpp.


Member Function Documentation

Vector3 GameEngine::PhysicsComponent::getPosition (  )  [inline]

Get the components position

Returns:
the position

Definition at line 70 of file PhysicsComponent.h.

Quaternion GameEngine::PhysicsComponent::getOrientation (  )  [inline]

Get the components orientation

Returns:
the orientation

Definition at line 76 of file PhysicsComponent.h.

Vector3 GameEngine::PhysicsComponent::getLinearVelocity (  )  [inline]

Get the components linear velocity

Returns:
the linear velocity

Definition at line 82 of file PhysicsComponent.h.

PhysicsManager* GameEngine::PhysicsComponent::getPhysicsManager (  )  [inline]

Get the physics manager which simulates this component

Returns:
the physics manager

Definition at line 90 of file PhysicsComponent.h.


Member Data Documentation

PhysicsManager* GameEngine::PhysicsComponent::mPhysicsManager [protected]

Definition at line 93 of file PhysicsComponent.h.

opal::Solid* GameEngine::PhysicsComponent::mPhysicsEntity [protected]

Definition at line 94 of file PhysicsComponent.h.

Quaternion GameEngine::PhysicsComponent::mInitialOri [protected]

Definition at line 96 of file PhysicsComponent.h.

Vector3 GameEngine::PhysicsComponent::mInitialPos [protected]

Definition at line 97 of file PhysicsComponent.h.

Vector3 GameEngine::PhysicsComponent::mInitialLinVel [protected]

Definition at line 97 of file PhysicsComponent.h.

Vector3 GameEngine::PhysicsComponent::mInitialAngVel [protected]

Definition at line 97 of file PhysicsComponent.h.

Vector3 GameEngine::PhysicsComponent::mInitialLinAcc [protected]

Definition at line 97 of file PhysicsComponent.h.

Vector3 GameEngine::PhysicsComponent::mInitialAngAc [protected]

Definition at line 97 of file PhysicsComponent.h.


The documentation for this class was generated from the following files:
Generated on Thu Apr 19 09:49:01 2007 for GameEngine by  doxygen 1.5.2