|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DPRJoint
Prismatic and Rotoide. The axisP must be perpendicular to axis2
+-------------+ | x | +------------\+ Prismatic articulation .. .. | .. .. \/ .. .. +--------------+ --| __.. .. anchor2 | x | .....|.......(__) .. +--------------+ --| ^ < |----------------------->| Offset |--- Rotoide articulation
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.ode4j.ode.DJoint |
---|
DJoint.DJointFeedback, DJoint.PARAM, DJoint.PARAM_GROUPS, DJoint.PARAM_N |
Field Summary |
---|
Fields inherited from interface org.ode4j.ode.DJoint |
---|
P_OFS_1, P_OFS_2, P_OFS_3 |
Method Summary | |
---|---|
void |
addTorque(double torque)
Applies the torque about the rotoide axis of the PR joint. |
void |
getAnchor(DVector3 result)
Get the joint anchor point, in world coordinates. |
double |
getAngle()
Get the PR angular position (i.e. |
double |
getAngleRate()
Get the PR angular position's time derivative. |
void |
getAxis1(DVector3 result)
Get the prismatic axis. |
void |
getAxis2(DVector3 result)
Get the Rotoide axis. |
double |
getParam(DJoint.PARAM_N parameter)
Get joint parameter. |
double |
getPosition()
Get the PR linear position (i.e. |
double |
getPositionRate()
Get the PR linear position's time derivative. |
void |
setAnchor(double x,
double y,
double z)
Set anchor. |
void |
setAnchor(DVector3C a)
Set anchor. |
void |
setAxis1(double x,
double y,
double z)
Set the axis for the prismatic articulation. |
void |
setAxis1(DVector3C a)
Set the axis for the prismatic articulation. |
void |
setAxis2(double x,
double y,
double z)
Set the axis for the rotoide articulation. |
void |
setAxis2(DVector3C a)
Set the axis for the rotoide articulation. |
void |
setParam(DJoint.PARAM_N parameter,
double value)
Set joint parameter. |
void |
setParamFMax2(double d)
|
void |
setParamHiStop(double d)
|
void |
setParamHiStop2(double d)
|
void |
setParamLoStop(double d)
|
void |
setParamLoStop2(double d)
|
void |
setParamVel2(double d)
|
Methods inherited from interface org.ode4j.ode.DJoint |
---|
attach, DESTRUCTOR, disable, enable, getBody, getData, getFeedback, getNumBodies, isEnabled, setData, setFeedback |
Method Detail |
---|
void setAnchor(double x, double y, double z)
void setAnchor(DVector3C a)
void setAxis1(double x, double y, double z)
void setAxis1(DVector3C a)
void setAxis2(double x, double y, double z)
void setAxis2(DVector3C a)
void getAnchor(DVector3 result)
void getAxis1(DVector3 result)
void getAxis2(DVector3 result)
double getPosition()
When the axis is set, the current position of the attached bodies is examined and that position will be the zero position.
The position is the "oriented" length between the position = (Prismatic axis) dot_product [(body1 + offset) - (body2 + anchor2)]
double getPositionRate()
void setParamLoStop(double d)
void setParamHiStop(double d)
void setParamLoStop2(double d)
void setParamHiStop2(double d)
void setParamVel2(double d)
void setParamFMax2(double d)
double getAngle()
double getAngleRate()
void setParam(DJoint.PARAM_N parameter, double value)
setParam
in interface DJoint
double getParam(DJoint.PARAM_N parameter)
getParam
in interface DJoint
void addTorque(double torque)
That is, it applies a torque with specified magnitude in the direction of the rotoide axis, to body 1, and with the same magnitude but in opposite direction to body 2. This function is just a wrapper for dBodyAddTorque()}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |