|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DBallJoint
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. |
void |
getAnchor2(DVector3 result)
Get the joint anchor point, in world coordinates. |
double |
getParam(DJoint.PARAM_N parameter)
Get joint parameter. |
void |
setAnchor(double x,
double y,
double z)
Set the joint anchor point. |
void |
setAnchor(DVector3C a)
Set the joint anchor point. |
void |
setAnchor2(double x,
double y,
double z)
Set the joint anchor point. |
void |
setAnchor2(DVector3C a)
Set the joint anchor point on body 2. |
void |
setParam(DJoint.PARAM_N parameter,
double value)
Param setting for Ball joints |
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 setAnchor2(double x, double y, double z)
void setAnchor(DVector3C a)
void setAnchor2(DVector3C a)
void getAnchor(DVector3 result)
void getAnchor2(DVector3 result)
This returns the point on body 2. You can think of a ball and socket joint as trying to keep the result of dJointGetBallAnchor() and dJointGetBallAnchor2() the same. If the joint is perfectly satisfied, this function will return the same value as dJointGetBallAnchor() to within roundoff errors. dJointGetBallAnchor2() can be used, along with dJointGetBallAnchor(), to see how far the joint has come apart.
void 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 |