public class ContactConstraint
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ContactConstraint.StictionState
Describes the static friction state of this contact.
|
Constructor and Description |
---|
ContactConstraint() |
ContactConstraint(ContactPoint cpnt0,
ContactPoint cpnt1,
boolean pnt0OnCollidable1) |
Modifier and Type | Method and Description |
---|---|
int |
add1DFrictionConstraints(SparseBlockMatrix DT,
java.util.ArrayList<FrictionInfo> finfo,
double mu,
double stictionCreep,
double compliance,
int numf) |
int |
add2DFrictionConstraints(SparseBlockMatrix DT,
java.util.ArrayList<FrictionInfo> finfo,
double mu,
double stictionCreep,
double compliance,
int numf,
boolean prune,
boolean bilateralContact) |
int |
addBilateralConstraints(SparseBlockMatrix GT,
double[] dbuf,
int numb) |
void |
addConstraintBlocks(SparseBlockMatrix GT,
int bj) |
void |
assignMasters(CollidableBody collidable0,
CollidableBody collidable1) |
void |
clearMasters() |
int |
collectMasterComponents(java.util.HashSet<DynamicComponent> masters,
boolean activeOnly) |
void |
equateContactPoints() |
int |
get1DFrictionForce(VectorNd phi,
int idx) |
int |
get1DFrictionState(VectorNi state,
int idx) |
int |
get2DFrictionForce(VectorNd phi,
int idx) |
int |
get2DFrictionState(VectorNi state,
int idx) |
double |
getContactForce() |
double |
getDerivative() |
double |
getDistance() |
Vector3d |
getFrictionForce() |
Vector3d |
getNormal() |
int |
getSolveIndex() |
void |
getState(DataBuffer data) |
boolean |
isActive() |
boolean |
isControllable() |
boolean |
isPnt0OnCollidable1() |
int |
set1DFrictionForce(VectorNd phi,
double s,
int idx) |
int |
set1DFrictionState(VectorNi state,
int idx) |
int |
set2DFrictionForce(VectorNd phi,
double s,
int idx) |
int |
set2DFrictionState(VectorNi state,
int idx) |
void |
setActive(boolean active) |
void |
setContactPoint0(Point3d pnt,
boolean pnt0OnCollidable1) |
void |
setContactPoints(ContactPoint cpnt0,
ContactPoint cpnt1,
boolean pnt0OnCollidable1) |
void |
setDistance(double d) |
void |
setNormal(Vector3d nrm) |
void |
setSolveIndex(int idx) |
void |
setState(DataBuffer data,
CollidableBody collidable0,
CollidableBody collidable1) |
java.lang.String |
toString(java.lang.String fmtStr) |
void |
zeroForces() |
public ContactConstraint()
public ContactConstraint(ContactPoint cpnt0, ContactPoint cpnt1, boolean pnt0OnCollidable1)
public double getContactForce()
public void zeroForces()
public int getSolveIndex()
public void setSolveIndex(int idx)
public double getDistance()
public void setDistance(double d)
public Vector3d getNormal()
public void setNormal(Vector3d nrm)
public boolean isActive()
public void setActive(boolean active)
public void clearMasters()
public int collectMasterComponents(java.util.HashSet<DynamicComponent> masters, boolean activeOnly)
public boolean isControllable()
public void setContactPoint0(Point3d pnt, boolean pnt0OnCollidable1)
public void setContactPoints(ContactPoint cpnt0, ContactPoint cpnt1, boolean pnt0OnCollidable1)
public boolean isPnt0OnCollidable1()
public void equateContactPoints()
public double getDerivative()
public int addBilateralConstraints(SparseBlockMatrix GT, double[] dbuf, int numb)
public void addConstraintBlocks(SparseBlockMatrix GT, int bj)
public Vector3d getFrictionForce()
public int add1DFrictionConstraints(SparseBlockMatrix DT, java.util.ArrayList<FrictionInfo> finfo, double mu, double stictionCreep, double compliance, int numf)
public int set1DFrictionForce(VectorNd phi, double s, int idx)
public int get1DFrictionForce(VectorNd phi, int idx)
public int set1DFrictionState(VectorNi state, int idx)
public int get1DFrictionState(VectorNi state, int idx)
public int add2DFrictionConstraints(SparseBlockMatrix DT, java.util.ArrayList<FrictionInfo> finfo, double mu, double stictionCreep, double compliance, int numf, boolean prune, boolean bilateralContact)
public int set2DFrictionForce(VectorNd phi, double s, int idx)
public int get2DFrictionForce(VectorNd phi, int idx)
public int set2DFrictionState(VectorNi state, int idx)
public int get2DFrictionState(VectorNi state, int idx)
public void assignMasters(CollidableBody collidable0, CollidableBody collidable1)
public void getState(DataBuffer data)
public void setState(DataBuffer data, CollidableBody collidable0, CollidableBody collidable1)
public java.lang.String toString(java.lang.String fmtStr)