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

Public Member Functions | |
| PhysicsJointHinge (VRS::SO< PhysicsBody >, VRS::SO< PhysicsBody >, VRS::Vector, VRS::Vector) | |
| virtual | ~PhysicsJointHinge () |
| 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. | |
creates a new hinge joint between two physics bodies, or one body and the static world. You have to provide a position vector for the hinge which is given in _world_ coordinates. Additionally you have to provide a vector for the hinges rotation axis.
Definition at line 24 of file PhysicsJointHinge.h.
| vrsode::PhysicsJointHinge::PhysicsJointHinge | ( | VRS::SO< PhysicsBody > | , | |
| VRS::SO< PhysicsBody > | , | |||
| VRS::Vector | , | |||
| VRS::Vector | ||||
| ) |
Definition at line 9 of file PhysicsJointHinge.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::PhysicsJointHinge::~PhysicsJointHinge | ( | ) | [virtual] |
Definition at line 27 of file PhysicsJointHinge.cpp.
References vrsode::PhysicsJoint::jointId().
Here is the call graph for this function:

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

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

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

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

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

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

1.5.1