Project

General

Profile

SO3Engine
SO3::SSliderContraint Class Reference

#include <SO3SliderContraint.h>

Inheritance diagram for SO3::SSliderContraint:
SO3::SPhysicContraint

Public Member Functions

 SSliderContraint (SScene *scene, SBody *son, SBody *parent=0, Ogre::Vector3 position=Ogre::Vector3::ZERO, Ogre::Vector3 pin=Ogre::Vector3::ZERO, bool useLimits=false, bool useSpring=false)
 
 ~SSliderContraint ()
 
virtual void SetParentBody (SBody *body)
 
virtual void SetSonBody (SBody *body)
 
void SetLimits (Ogre::Real maxDist, Ogre::Real minDist)
 
void UseLimits (bool state)
 
void UseMotor (bool state)
 
void SetMotorVelocity (Ogre::Real velocity, Ogre::Real strength)
 
void SetSpring (Ogre::Real springStrength, Ogre::Real springDamping)
 
void UseSpring (bool state)
 
Ogre::Real GetVelocity ()
 
Ogre::Vector3 GetForce ()
 
Ogre::Real GetDistance ()
 
void SetFriction (Ogre::Real friction)
 
- Public Member Functions inherited from SO3::SPhysicContraint
 SPhysicContraint (SScene *scene, SBody *son, SBody *parent=0, PhysicContraintType type=SO3_NULL_CONTRAINT)
 
virtual ~SPhysicContraint ()
 
SBodyGetParentBody ()
 
SBodyGetSonBody ()
 
SSceneGetParentScene ()
 
PhysicContraintType GetType ()
 
void SetCollisionState (bool state)
 
bool GetCollisionState ()
 
Ogre::Real GetStiffness ()
 
void SetStiffness (Ogre::Real value)
 

Additional Inherited Members

- Public Types inherited from SO3::SPhysicContraint
enum  PhysicContraintType {
  SO3_NULL_CONTRAINT , SO3_BALL_AND_SOCKET_CONTRAINT , SO3_HINGE_CONTRAINT , SO3_SLIDER_CONTRAINT ,
  SO3_VEHICLE_CONTRAINT , SO3_KINEMATIC_CONTROLLER_CONTRAINT
}
 
- Protected Attributes inherited from SO3::SPhysicContraint
SBodymParentBody
 
SBodymSonBody
 
SScenemScene
 
OgreNewt::JointmJoint
 
PhysicContraintType mType
 

Detailed Description

Definition at line 42 of file SO3SliderContraint.h.

Constructor & Destructor Documentation

◆ SSliderContraint()

SSliderContraint::SSliderContraint ( SScene scene,
SBody son,
SBody parent = 0,
Ogre::Vector3  position = Ogre::Vector3::ZERO,
Ogre::Vector3  pin = Ogre::Vector3::ZERO,
bool  useLimits = false,
bool  useSpring = false 
)

Definition at line 19 of file SO3SliderContraint.cpp.

◆ ~SSliderContraint()

SSliderContraint::~SSliderContraint ( )

Definition at line 30 of file SO3SliderContraint.cpp.

Member Function Documentation

◆ GetDistance()

Ogre::Real SSliderContraint::GetDistance ( )

Definition at line 122 of file SO3SliderContraint.cpp.

◆ GetForce()

Ogre::Vector3 SSliderContraint::GetForce ( )

Definition at line 114 of file SO3SliderContraint.cpp.

◆ GetVelocity()

Ogre::Real SSliderContraint::GetVelocity ( )

Definition at line 106 of file SO3SliderContraint.cpp.

◆ SetFriction()

void SSliderContraint::SetFriction ( Ogre::Real  friction)

Definition at line 130 of file SO3SliderContraint.cpp.

◆ SetLimits()

void SSliderContraint::SetLimits ( Ogre::Real  maxDist,
Ogre::Real  minDist 
)

Definition at line 84 of file SO3SliderContraint.cpp.

◆ SetMotorVelocity()

void SSliderContraint::SetMotorVelocity ( Ogre::Real  velocity,
Ogre::Real  strength 
)

Definition at line 78 of file SO3SliderContraint.cpp.

◆ SetParentBody()

void SSliderContraint::SetParentBody ( SBody body)
virtual

Implements SO3::SPhysicContraint.

Definition at line 35 of file SO3SliderContraint.cpp.

◆ SetSonBody()

void SSliderContraint::SetSonBody ( SBody body)
virtual

Implements SO3::SPhysicContraint.

Definition at line 42 of file SO3SliderContraint.cpp.

◆ SetSpring()

void SSliderContraint::SetSpring ( Ogre::Real  springStrength,
Ogre::Real  springDamping 
)

Definition at line 93 of file SO3SliderContraint.cpp.

◆ UseLimits()

void SSliderContraint::UseLimits ( bool  state)

Definition at line 64 of file SO3SliderContraint.cpp.

◆ UseMotor()

void SSliderContraint::UseMotor ( bool  state)

Definition at line 71 of file SO3SliderContraint.cpp.

◆ UseSpring()

void SSliderContraint::UseSpring ( bool  state)

Definition at line 99 of file SO3SliderContraint.cpp.


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