Torque2D Reference
|
Functions | |
void | convertPosition (const Leap::Vector &inPosition, F32 &x, F32 &y, F32 &z) |
Convert from a Leap Motion position to a Torque 3D position. More... | |
void | convertPosition (const Leap::Vector &inPosition, Point3F &outPosition) |
Convert from a Leap Motion position to a Torque 3D Point3F. More... | |
void | convertHandRotation (const Leap::Hand &hand, MatrixF &outRotation) |
Convert a Leap Motion hand's rotation to a Torque 3D matrix. More... | |
void | calculateHandAxisRotation (const MatrixF &handRotation, const F32 &maxHandAxisRadius, Point2F &outRotation) |
Calcualte a hand's rotation as if it were a thumb stick axis. More... | |
void | convertPointableRotation (const Leap::Pointable &pointable, MatrixF &outRotation) |
Convert a Leap Motion pointable's rotation to a Torque 3D matrix. More... | |
void calculateHandAxisRotation | ( | const MatrixF & | handRotation, |
const F32 & | maxHandAxisRadius, | ||
Point2F & | outRotation | ||
) |
Calcualte a hand's rotation as if it were a thumb stick axis.
void convertHandRotation | ( | const Leap::Hand & | hand, |
MatrixF & | outRotation | ||
) |
Convert a Leap Motion hand's rotation to a Torque 3D matrix.
void convertPointableRotation | ( | const Leap::Pointable & | pointable, |
MatrixF & | outRotation | ||
) |
Convert a Leap Motion pointable's rotation to a Torque 3D matrix.
void convertPosition | ( | const Leap::Vector & | inPosition, |
F32 & | x, | ||
F32 & | y, | ||
F32 & | z | ||
) |
Convert from a Leap Motion position to a Torque 3D position.