public interface CollisionData
Modifier and Type | Method and Description |
---|---|
int |
addConstraintInfo(Vertex3d vtx,
Point3d constraintLoc,
double weight,
DeformableContactConstraint con)
Adds the point information from
this object's vertex and weight to the
supplied constraint. |
Collidable |
getComponent()
Returns the component involved in the collision
|
PolygonalMesh |
getMesh()
Gets the PolygonalMesh used for collisions
|
void |
markMasters(Vertex3d vtx,
boolean marked)
Mark the master dynamic components of vertex
vtx
as being "used" |
int |
numActiveUnmarkedMasters(Vertex3d vtx)
Count the number of "free" master components for vertex
vtx . |
PolygonalMesh getMesh()
Collidable getComponent()
int addConstraintInfo(Vertex3d vtx, Point3d constraintLoc, double weight, DeformableContactConstraint con)
this
object's vertex and weight to the
supplied constraint.vtx
- vertex belonging to this
objectconstraintLoc
- actual world location of constraintweight
- weight used in constraintcon
- the constraint to modifyvoid markMasters(Vertex3d vtx, boolean marked)
vtx
as being "used"int numActiveUnmarkedMasters(Vertex3d vtx)
vtx
.
Used for determining whether or not a collision should be allowed.vtx
-