public class MultiPointSpring.WrapKnot extends java.lang.Object implements Clonable
Modifier and Type | Field and Description |
---|---|
Vector3d |
myForce |
Point3d |
myLocPos |
Point3d |
myPos |
Modifier and Type | Method and Description |
---|---|
MultiPointSpring.WrapKnot |
clone()
Clones a copy of this knot.
|
double |
getContactDistance()
Returns the contact distance if this knot is in contact.
|
Vector3d |
getContactNormal()
Returns the contact normal for this knot.
|
Wrappable |
getPrevWrappable()
Returns the wrappable this knot was previously in contact with, or
null.
|
Wrappable |
getWrappable()
Returns the wrappable this knot is in contact with, or null.
|
int |
getWrappableIdx()
Gets the index of the wrappable this knot is contacting, or -1 if
there is no contact.
|
boolean |
inContact()
Returns true if this knot is in contact.
|
void |
setWrappableIdx(int idx)
Sets the index of the wrappable this knot is contacting, or -1 to
indicate no contact.
|
public Point3d myPos
public Point3d myLocPos
public Vector3d myForce
public void setWrappableIdx(int idx)
public int getWrappableIdx()
public boolean inContact()
public double getContactDistance()
public Vector3d getContactNormal()
public Wrappable getWrappable()
public Wrappable getPrevWrappable()
public MultiPointSpring.WrapKnot clone()