public class RigidBodyConstraint
extends java.lang.Object
Constructor and Description |
---|
RigidBodyConstraint() |
Modifier and Type | Method and Description |
---|---|
double |
getCompliance() |
double |
getContactAccel() |
Point3d |
getContactPoint()
Returns the contact point for point contact constraints, or null
otherwise.
|
double |
getContactSpeed() |
double |
getDamping() |
double |
getDerivative() |
double |
getDistance() |
Wrench |
getDotWrenchC() |
double |
getFriction() |
double |
getFrictionLimit() |
double |
getMultiplier() |
double |
getOffset() |
int |
getSolveIndex()
Returns the index of this constraint within either the GT or NT
matrix of the global system MLCP.
|
void |
getState(DataBuffer data) |
static int |
getStateSize() |
Wrench |
getWrenchA() |
Wrench |
getWrenchB() |
Wrench |
getWrenchC() |
boolean |
isUnilateral() |
void |
setCompliance(double c) |
void |
setContactAccel(double s) |
void |
setContactPoint(Point3d pnt)
Sets the contact point for point contact constraints.
|
void |
setContactSpeed(double s) |
void |
setDamping(double c) |
void |
setDerivative(double d) |
void |
setDistance(double d) |
void |
setDotWrenchC(Wrench wr) |
void |
setFriction(double f) |
void |
setFrictionLimit(double f) |
void |
setMultiplier(double lam) |
void |
setOffset(double b) |
void |
setSolveIndex(int idx) |
void |
setState(DataBuffer data) |
void |
setUnilateral(boolean unilateral) |
void |
setWrenchA(Wrench wr) |
void |
setWrenchB(Wrench wr) |
void |
setWrenchC(Wrench wr) |
java.lang.String |
toString() |
public void setWrenchA(Wrench wr)
public Wrench getWrenchA()
public void setWrenchB(Wrench wr)
public Wrench getWrenchB()
public void setWrenchC(Wrench wr)
public Wrench getWrenchC()
public void setDotWrenchC(Wrench wr)
public Wrench getDotWrenchC()
public boolean isUnilateral()
public void setUnilateral(boolean unilateral)
public int getSolveIndex()
public void setSolveIndex(int idx)
public void setDerivative(double d)
public double getDerivative()
public void setOffset(double b)
public double getOffset()
public void setMultiplier(double lam)
public double getMultiplier()
public void setDistance(double d)
public double getDistance()
public void setCompliance(double c)
public double getCompliance()
public void setDamping(double c)
public double getDamping()
public void setContactSpeed(double s)
public double getContactSpeed()
public void setContactAccel(double s)
public double getContactAccel()
public void setFrictionLimit(double f)
public double getFrictionLimit()
public void setFriction(double f)
public double getFriction()
public void setContactPoint(Point3d pnt)
pnt
- new contact point. The supplied value is copied internally.public Point3d getContactPoint()
public java.lang.String toString()
toString
in class java.lang.Object
public static int getStateSize()
public void getState(DataBuffer data)
public void setState(DataBuffer data)