Project

General

Profile

SO3Engine
SO3::SPhysicContraint Class Referenceabstract

#include <SO3PhysicContraint.h>

Inheritance diagram for SO3::SPhysicContraint:
SO3::SBallAndSocketContraint SO3::SHingeContraint SO3::SSliderContraint SO3::SVehicleContraint

Public Types

enum  PhysicContraintType {
  SO3_NULL_CONTRAINT , SO3_BALL_AND_SOCKET_CONTRAINT , SO3_HINGE_CONTRAINT , SO3_SLIDER_CONTRAINT ,
  SO3_VEHICLE_CONTRAINT , SO3_KINEMATIC_CONTROLLER_CONTRAINT
}
 

Public Member Functions

 SPhysicContraint (SScene *scene, SBody *son, SBody *parent=0, PhysicContraintType type=SO3_NULL_CONTRAINT)
 
virtual ~SPhysicContraint ()
 
SBodyGetParentBody ()
 
SBodyGetSonBody ()
 
virtual void SetParentBody (SBody *body)=0
 
virtual void SetSonBody (SBody *body)=0
 
SSceneGetParentScene ()
 
PhysicContraintType GetType ()
 
void SetCollisionState (bool state)
 
bool GetCollisionState ()
 
Ogre::Real GetStiffness ()
 
void SetStiffness (Ogre::Real value)
 

Protected Attributes

SBodymParentBody
 
SBodymSonBody
 
SScenemScene
 
OgreNewt::JointmJoint
 
PhysicContraintType mType
 

Detailed Description

Definition at line 41 of file SO3PhysicContraint.h.

Member Enumeration Documentation

◆ PhysicContraintType

Enumerator
SO3_NULL_CONTRAINT 
SO3_BALL_AND_SOCKET_CONTRAINT 
SO3_HINGE_CONTRAINT 
SO3_SLIDER_CONTRAINT 
SO3_VEHICLE_CONTRAINT 
SO3_KINEMATIC_CONTROLLER_CONTRAINT 

Definition at line 44 of file SO3PhysicContraint.h.

Constructor & Destructor Documentation

◆ SPhysicContraint()

SPhysicContraint::SPhysicContraint ( SScene scene,
SBody son,
SBody parent = 0,
PhysicContraintType  type = SO3_NULL_CONTRAINT 
)

Definition at line 20 of file SO3PhysicContraint.cpp.

◆ ~SPhysicContraint()

SPhysicContraint::~SPhysicContraint ( )
virtual

Definition at line 30 of file SO3PhysicContraint.cpp.

Member Function Documentation

◆ GetCollisionState()

bool SPhysicContraint::GetCollisionState ( )

Definition at line 75 of file SO3PhysicContraint.cpp.

◆ GetParentBody()

SBody * SPhysicContraint::GetParentBody ( )

Definition at line 39 of file SO3PhysicContraint.cpp.

◆ GetParentScene()

SScene * SPhysicContraint::GetParentScene ( )

Definition at line 59 of file SO3PhysicContraint.cpp.

◆ GetSonBody()

SBody * SPhysicContraint::GetSonBody ( )

Definition at line 44 of file SO3PhysicContraint.cpp.

◆ GetStiffness()

Ogre::Real SPhysicContraint::GetStiffness ( )

Definition at line 83 of file SO3PhysicContraint.cpp.

◆ GetType()

SPhysicContraint::PhysicContraintType SPhysicContraint::GetType ( )

Definition at line 64 of file SO3PhysicContraint.cpp.

◆ SetCollisionState()

void SPhysicContraint::SetCollisionState ( bool  state)

Definition at line 69 of file SO3PhysicContraint.cpp.

◆ SetParentBody()

void SPhysicContraint::SetParentBody ( SBody body)
pure virtual

◆ SetSonBody()

void SPhysicContraint::SetSonBody ( SBody body)
pure virtual

◆ SetStiffness()

void SPhysicContraint::SetStiffness ( Ogre::Real  value)

Definition at line 91 of file SO3PhysicContraint.cpp.

Member Data Documentation

◆ mJoint

OgreNewt::Joint* SO3::SPhysicContraint::mJoint
protected

Definition at line 57 of file SO3PhysicContraint.h.

◆ mParentBody

SBody* SO3::SPhysicContraint::mParentBody
protected

Definition at line 54 of file SO3PhysicContraint.h.

◆ mScene

SScene* SO3::SPhysicContraint::mScene
protected

Definition at line 56 of file SO3PhysicContraint.h.

◆ mSonBody

SBody* SO3::SPhysicContraint::mSonBody
protected

Definition at line 55 of file SO3PhysicContraint.h.

◆ mType

PhysicContraintType SO3::SPhysicContraint::mType
protected

Definition at line 58 of file SO3PhysicContraint.h.


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