|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DPUJoint
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 |
getAnchor(DVector3 result)
Get the joint anchor point, in world coordinates. |
double |
getAngle1()
Get angle between the body1 and the axis 1. |
double |
getAngle1Rate()
Get time derivative of angle1. |
double |
getAngle2()
Get angle between the body2 and the axis 2. |
double |
getAngle2Rate()
Get time derivative of angle2. |
void |
getAxis1(DVector3 result)
Get the first axis of the universal component of the joint. |
void |
getAxis2(DVector3 result)
Get the second axis of the Universal component of the joint. |
void |
getAxis3(DVector3 result)
Get the prismatic axis. |
void |
getAxisP(DVector3 result)
Get the prismatic axis. |
double |
getParam(DJoint.PARAM_N parameter)
Get joint parameter. |
double |
getPosition()
Get the PU 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 |
setAnchorOffset(double x,
double y,
double z,
double dx,
double dy,
double dz)
Set the PU anchor as if the 2 bodies were already at [dx, dy, dz] apart. |
void |
setAxis1(double x,
double y,
double z)
Set the axis for the first axis or the universal articulation. |
void |
setAxis1(DVector3C a)
Set the axis for the first axis or the universal articulation. |
void |
setAxis2(double x,
double y,
double z)
Set the axis for the second axis or the universal articulation. |
void |
setAxis2(DVector3C a)
Set the axis for the second axis or the universal articulation. |
void |
setAxis3(double x,
double y,
double z)
Set the axis for the prismatic articulation. |
void |
setAxis3(DVector3C a)
Set the axis for the prismatic articulation. |
void |
setAxisP(double x,
double y,
double z)
Set the axis for the prismatic articulation. |
void |
setAxisP(DVector3C a)
Set the axis for the prismatic articulation. |
void |
setParam(DJoint.PARAM_N parameter,
double value)
Set joint parameter. |
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 setAxis3(double x, double y, double z)
void setAxis3(DVector3C a)
void setAxisP(double x, double y, double z)
void setAxisP(DVector3C a)
void getAnchor(DVector3 result)
void getAxis1(DVector3 result)
void getAxis2(DVector3 result)
void getAxis3(DVector3 result)
void getAxisP(DVector3 result)
double getAngle1()
double getAngle1Rate()
double getAngle2()
double getAngle2Rate()
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 setAnchorOffset(double x, double y, double z, double dx, double dy, double dz)
x
- The X position of the anchor point in world framey
- The Y position of the anchor point in world framez
- The Z position of the anchor point in world framedx
- A delta to be subtracted to the X position as if the anchor was set
when body1 was at current_position[X] - dxdy
- A delta to be subtracted to the Y position as if the anchor was set
when body1 was at current_position[Y] - dydz
- A delta to be subtracted to the Z position as if the anchor was set
when body1 was at current_position[Z] - dzvoid setParam(DJoint.PARAM_N parameter, double value)
setParam
in interface DJoint
double getParam(DJoint.PARAM_N parameter)
getParam
in interface DJoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |