Public Member Functions

sp::physics::PhysXJoint Class Reference

#include <spPhysXJoint.hpp>

Inheritance diagram for sp::physics::PhysXJoint:
sp::physics::PhysicsJoint

List of all members.

Public Member Functions

 PhysXJoint (PxPhysics *PxDevice, const EPhysicsJoints Type, PhysXRigidBody *ObjectA, PhysicsBaseObject *ObjectB, const SPhysicsJointConstruct &Construct)
 ~PhysXJoint ()
void setPosition (const dim::vector3df &Position)
dim::vector3df getPosition () const
void setLimit (bool Enable)
bool getLimit () const
void setLimit (f32 Min, f32 Max, bool Enable=true)
 Sets the limitation values. This can be either an angle or linear value.
void getLimit (f32 &Min, f32 &Max) const
void setMotor (bool Enable, f32 MotorPower=100.0f)
bool getMotor () const
void runMotor (f32 Velocity)
f32 getLinearValue () const
 Returns the joint linear value. This can also be an angle (for a hinge-joint).

Constructor & Destructor Documentation

sp::physics::PhysXJoint::PhysXJoint ( PxPhysics *  PxDevice,
const EPhysicsJoints  Type,
PhysXRigidBody ObjectA,
PhysicsBaseObject ObjectB,
const SPhysicsJointConstruct Construct 
)
sp::physics::PhysXJoint::~PhysXJoint (  ) 

Member Function Documentation

bool sp::physics::PhysXJoint::getLimit (  )  const [virtual]
void sp::physics::PhysXJoint::getLimit ( f32 Min,
f32 Max 
) const [virtual]
f32 sp::physics::PhysXJoint::getLinearValue (  )  const [virtual]

Returns the joint linear value. This can also be an angle (for a hinge-joint).

Implements sp::physics::PhysicsJoint.

bool sp::physics::PhysXJoint::getMotor (  )  const [virtual]
dim::vector3df sp::physics::PhysXJoint::getPosition (  )  const [virtual]
void sp::physics::PhysXJoint::runMotor ( f32  Velocity  )  [virtual]
void sp::physics::PhysXJoint::setLimit ( bool  Enable  )  [virtual]
void sp::physics::PhysXJoint::setLimit ( f32  Min,
f32  Max,
bool  Enable = true 
) [virtual]

Sets the limitation values. This can be either an angle or linear value.

Implements sp::physics::PhysicsJoint.

void sp::physics::PhysXJoint::setMotor ( bool  Enable,
f32  MotorPower = 100.0f 
) [virtual]

Activates the motor interaction.

Parameters:
Enable,: Specifies whether the hinge motor is to be enabled or disabled. By default disabled. Once the motor is enabled it runs until it will be disabled.
MotorPower,: Specifies the power of the motor. This should be at least the mass of the heaviest rigid body which is connected to this joint.
See also:
getMotor

Implements sp::physics::PhysicsJoint.

void sp::physics::PhysXJoint::setPosition ( const dim::vector3df Position  )  [virtual]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines