vrsode::PhysicsJointBall Class Reference

create new ball joint. More...

#include <PhysicsJointBall.h>

Inheritance diagram for vrsode::PhysicsJointBall:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 PhysicsJointBall (VRS::SO< PhysicsBody >, VRS::SO< PhysicsBody >, VRS::Vector)
virtual ~PhysicsJointBall ()
void setLowStop (double)
 set the low stop.
void setHighStop (double)
 set high stop value.
void setStopBounce (double)
 set stop bounce.
void setMotorVelocity (double)
 set motor velocity.
void setMotorMaxForce (double)
 set the motors maximum force.
void setCFM (double)
 set contraint force mixing value.

Detailed Description

create new ball joint.

this creates a new ball joint between two physics bodies. you can set one parameter to 0 to create a joint between the static environment and the physics body. The provided vector describes the point of connection given in _world_ coordinates.

Definition at line 23 of file PhysicsJointBall.h.


Constructor & Destructor Documentation

vrsode::PhysicsJointBall::PhysicsJointBall ( VRS::SO< PhysicsBody ,
VRS::SO< PhysicsBody ,
VRS::Vector   
)

Definition at line 9 of file PhysicsJointBall.cpp.

References vrsode::PhysicsJoint::bodyOne(), vrsode::PhysicsJoint::bodyTwo(), vrsode::PhysicsManager::get(), vrsode::PhysicsJoint::jointId(), and vrsode::PhysicsJoint::setJointId().

Here is the call graph for this function:

vrsode::PhysicsJointBall::~PhysicsJointBall (  )  [virtual]

Definition at line 25 of file PhysicsJointBall.cpp.

References vrsode::PhysicsJoint::jointId().

Here is the call graph for this function:


Member Function Documentation

void vrsode::PhysicsJointBall::setLowStop ( double   )  [virtual]

set the low stop.

this function sets the low stop of this join. you can see this as a additional movement constraint for the object connected. the parameter is given relative to the initial position of the joint connection.

sample with slider join: if you place one object at 0,0,0 and one at 0,10,0 set the slider vector to 0,1,0 a low stop value of -6 mean that one object can move 6 units in direction of the other object.

Implements vrsode::PhysicsJoint.

Definition at line 31 of file PhysicsJointBall.cpp.

References rWrn.

void vrsode::PhysicsJointBall::setHighStop ( double   )  [virtual]

set high stop value.

see setLowStop for explaination.

Implements vrsode::PhysicsJoint.

Definition at line 37 of file PhysicsJointBall.cpp.

References rWrn.

void vrsode::PhysicsJointBall::setStopBounce ( double   )  [virtual]

set stop bounce.

this sets the bouncyness of the given stops. this must be an value between 0 and 1.

Implements vrsode::PhysicsJoint.

Definition at line 55 of file PhysicsJointBall.cpp.

References rWrn.

void vrsode::PhysicsJointBall::setMotorVelocity ( double   )  [virtual]

set motor velocity.

sets the desired motor velocity.

Implements vrsode::PhysicsJoint.

Definition at line 43 of file PhysicsJointBall.cpp.

References rWrn.

void vrsode::PhysicsJointBall::setMotorMaxForce ( double   )  [virtual]

set the motors maximum force.

set the max force that is allowed to be applied to reach the desired motor velocity.

Implements vrsode::PhysicsJoint.

Definition at line 49 of file PhysicsJointBall.cpp.

References rWrn.

void vrsode::PhysicsJointBall::setCFM ( double   )  [virtual]

set contraint force mixing value.

Implements vrsode::PhysicsJoint.

Definition at line 61 of file PhysicsJointBall.cpp.

References rWrn.


The documentation for this class was generated from the following files:
Generated on Fri May 11 21:02:17 2007 for Random Racer by  doxygen 1.5.1