The connector is a handle in each slave, which can be constrained. The connector could be the slave center of mass (in the rigid body case) or something else. Depends on your subsystem.
More...
#include <Connector.h>
|
| Connector () |
|
virtual | ~Connector () |
|
void | setPosition (double x, double y, double z) |
| Set the position of this connector. More...
|
|
void | setVelocity (double vx, double vy, double vz) |
| Set velocity of the connector. More...
|
|
void | setFutureVelocity (const Vec3 &velocity, const Vec3 &angularVelocity) |
|
void | setOrientation (double x, double y, double z, double w) |
| Set orientation of the connector. More...
|
|
void | setAngularVelocity (double wx, double wy, double wz) |
| Set angular velocity of the connector. More...
|
|
double | getConstraintForce (int element) |
| Get one of the elements of the resulting constraint force. More...
|
|
double | getConstraintTorque (int element) |
| Get one of the elements of the resulting constraint torque. More...
|
|
The connector is a handle in each slave, which can be constrained. The connector could be the slave center of mass (in the rigid body case) or something else. Depends on your subsystem.
Connector::~Connector |
( |
| ) |
|
|
virtual |
double Connector::getConstraintForce |
( |
int |
element | ) |
|
Get one of the elements of the resulting constraint force.
- Parameters
-
element | 0, 1, or 2: the element in the force array to get. |
double Connector::getConstraintTorque |
( |
int |
element | ) |
|
Get one of the elements of the resulting constraint torque.
- Parameters
-
element | 0, 1, or 2, the element in the torque array to get. |
void Connector::setAngularVelocity |
( |
double |
wx, |
|
|
double |
wy, |
|
|
double |
wz |
|
) |
| |
Set angular velocity of the connector.
void Connector::setFutureVelocity |
( |
const Vec3 & |
velocity, |
|
|
const Vec3 & |
angularVelocity |
|
) |
| |
void Connector::setOrientation |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
double |
w |
|
) |
| |
Set orientation of the connector.
void Connector::setPosition |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z |
|
) |
| |
Set the position of this connector.
void Connector::setVelocity |
( |
double |
vx, |
|
|
double |
vy, |
|
|
double |
vz |
|
) |
| |
Set velocity of the connector.
Vec3 sc::Connector::m_angularVelocity |
Angular velocity of the connector.
Vec3 sc::Connector::m_force |
Resulting contraint force. Will be set by the scSolver in scSolver::solve().
Vec3 sc::Connector::m_futureAngularVelocity |
Vec3 sc::Connector::m_futureVelocity |
int sc::Connector::m_index |
Index of the connector in the system matrix. Will be set by the scSolver it is added to.
Vec3 sc::Connector::m_position |
Physical position of the connector.
Quat sc::Connector::m_quaternion |
Quaternion orientation of this connector. Needed?
void* sc::Connector::m_slave |
Pointer to the owner slave.
Vec3 sc::Connector::m_torque |
Resulting constraint torque.
void* sc::Connector::m_userData |
Pointer to arbitrary user data. Use it as you want.
Vec3 sc::Connector::m_velocity |
Physical (linear) velocity of the connector.
The documentation for this class was generated from the following files: