com.bulletphysics.dynamics.constraintsolver
Class ContactConstraint
java.lang.Object
com.bulletphysics.dynamics.constraintsolver.ContactConstraint
public class ContactConstraint
- extends Object
Functions for resolving contacts.
Method Summary |
static void |
resolveSingleBilateral(RigidBody body1,
Vector3f pos1,
RigidBody body2,
Vector3f pos2,
float distance,
Vector3f normal,
float[] impulse,
float timeStep)
Bilateral constraint between two dynamic objects. |
static float |
resolveSingleCollision(RigidBody body1,
RigidBody body2,
ManifoldPoint contactPoint,
ContactSolverInfo solverInfo)
Response between two dynamic objects with friction. |
static float |
resolveSingleCollisionCombined(RigidBody body1,
RigidBody body2,
ManifoldPoint contactPoint,
ContactSolverInfo solverInfo)
velocity + friction
response between two dynamic objects with friction |
static float |
resolveSingleFriction(RigidBody body1,
RigidBody body2,
ManifoldPoint contactPoint,
ContactSolverInfo solverInfo)
|
static float |
resolveSingleFrictionEmpty(RigidBody body1,
RigidBody body2,
ManifoldPoint contactPoint,
ContactSolverInfo solverInfo)
|
resolveSingleCollision
public static final ContactSolverFunc resolveSingleCollision
resolveSingleFriction
public static final ContactSolverFunc resolveSingleFriction
resolveSingleCollisionCombined
public static final ContactSolverFunc resolveSingleCollisionCombined
ContactConstraint
public ContactConstraint()
resolveSingleBilateral
public static void resolveSingleBilateral(RigidBody body1,
Vector3f pos1,
RigidBody body2,
Vector3f pos2,
float distance,
Vector3f normal,
float[] impulse,
float timeStep)
- Bilateral constraint between two dynamic objects.
resolveSingleCollision
public static float resolveSingleCollision(RigidBody body1,
RigidBody body2,
ManifoldPoint contactPoint,
ContactSolverInfo solverInfo)
- Response between two dynamic objects with friction.
resolveSingleFriction
public static float resolveSingleFriction(RigidBody body1,
RigidBody body2,
ManifoldPoint contactPoint,
ContactSolverInfo solverInfo)
resolveSingleCollisionCombined
public static float resolveSingleCollisionCombined(RigidBody body1,
RigidBody body2,
ManifoldPoint contactPoint,
ContactSolverInfo solverInfo)
- velocity + friction
response between two dynamic objects with friction
resolveSingleFrictionEmpty
public static float resolveSingleFrictionEmpty(RigidBody body1,
RigidBody body2,
ManifoldPoint contactPoint,
ContactSolverInfo solverInfo)