#include <PhysicsJointSlider.h>
Inheritance diagram for vrsode::PhysicsJointSlider:

Public Member Functions | |
| PhysicsJointSlider (VRS::SO< PhysicsBody >, VRS::SO< PhysicsBody >, VRS::Vector) | |
| ctor. | |
| virtual | ~PhysicsJointSlider () |
| dtor. | |
| 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. | |
| void | addForce (double) |
| add a force to the joint bodies. | |
creates a new slider joint between two physics bodies, or one body and the static world. You have to provide the slider axis as a vector.
Definition at line 22 of file PhysicsJointSlider.h.
| vrsode::PhysicsJointSlider::PhysicsJointSlider | ( | VRS::SO< PhysicsBody > | , | |
| VRS::SO< PhysicsBody > | , | |||
| VRS::Vector | ||||
| ) |
ctor.
Definition at line 9 of file PhysicsJointSlider.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::PhysicsJointSlider::~PhysicsJointSlider | ( | ) | [virtual] |
dtor.
Definition at line 25 of file PhysicsJointSlider.cpp.
References vrsode::PhysicsJoint::jointId().
Here is the call graph for this function:

| void vrsode::PhysicsJointSlider::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 PhysicsJointSlider.cpp.
References vrsode::PhysicsJoint::jointId().
Here is the call graph for this function:

| void vrsode::PhysicsJointSlider::setHighStop | ( | double | ) | [virtual] |
set high stop value.
see setLowStop for explaination.
Implements vrsode::PhysicsJoint.
Definition at line 37 of file PhysicsJointSlider.cpp.
References vrsode::PhysicsJoint::jointId().
Here is the call graph for this function:

| void vrsode::PhysicsJointSlider::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 PhysicsJointSlider.cpp.
References vrsode::PhysicsJoint::jointId().
Here is the call graph for this function:

| void vrsode::PhysicsJointSlider::setMotorVelocity | ( | double | ) | [virtual] |
set motor velocity.
sets the desired motor velocity.
Implements vrsode::PhysicsJoint.
Definition at line 43 of file PhysicsJointSlider.cpp.
References vrsode::PhysicsJoint::jointId().
Here is the call graph for this function:

| void vrsode::PhysicsJointSlider::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 PhysicsJointSlider.cpp.
References vrsode::PhysicsJoint::jointId().
Here is the call graph for this function:

| void vrsode::PhysicsJointSlider::setCFM | ( | double | ) | [virtual] |
set contraint force mixing value.
Implements vrsode::PhysicsJoint.
Definition at line 67 of file PhysicsJointSlider.cpp.
References vrsode::PhysicsJoint::jointId().
Here is the call graph for this function:

| void vrsode::PhysicsJointSlider::addForce | ( | double | ) |
add a force to the joint bodies.
this adds a force in the direction of the slider vector.
Definition at line 61 of file PhysicsJointSlider.cpp.
References vrsode::PhysicsJoint::jointId().
Here is the call graph for this function:

1.5.1