com.bulletphysics.dynamics.constraintsolver
Class Point2PointConstraint
java.lang.Object
com.bulletphysics.dynamics.constraintsolver.TypedConstraint
com.bulletphysics.dynamics.constraintsolver.Point2PointConstraint
public class Point2PointConstraint
- extends TypedConstraint
Point to point constraint between two rigid bodies each with a pivot point that
descibes the "ballsocket" location in local space.
setting
public Point2PointConstraint.ConstraintSetting setting
Point2PointConstraint
public Point2PointConstraint()
Point2PointConstraint
public Point2PointConstraint(RigidBody rbA,
RigidBody rbB,
Vector3f pivotInA,
Vector3f pivotInB)
Point2PointConstraint
public Point2PointConstraint(RigidBody rbA,
Vector3f pivotInA)
buildJacobian
public void buildJacobian()
- Specified by:
buildJacobian
in class TypedConstraint
solveConstraint
public void solveConstraint(float timeStep)
- Specified by:
solveConstraint
in class TypedConstraint
updateRHS
public void updateRHS(float timeStep)
setPivotA
public void setPivotA(Vector3f pivotA)
setPivotB
public void setPivotB(Vector3f pivotB)
getPivotInA
public Vector3f getPivotInA(Vector3f out)
getPivotInB
public Vector3f getPivotInB(Vector3f out)