Package com.jme3.bullet.joints
Class Point2PointJoint
java.lang.Object
com.jme3.bullet.joints.PhysicsJoint
com.jme3.bullet.joints.Point2PointJoint
- All Implemented Interfaces:
Savable
From bullet manual:
Point to point constraint, also known as ball socket joint limits the translation so that the local pivot points of 2 rigid bodies match in worldspace. A chain of rigid bodies can be connected using this constraint.
Point to point constraint, also known as ball socket joint limits the translation so that the local pivot points of 2 rigid bodies match in worldspace. A chain of rigid bodies can be connected using this constraint.
-
Field Summary
Fields inherited from class com.jme3.bullet.joints.PhysicsJoint
collisionBetweenLinkedBodys, constraint, nodeA, nodeB, pivotA, pivotB -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPoint2PointJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfloatfloatfloatgetTau()voidread(JmeImporter im) voidsetDamping(float value) voidsetImpulseClamp(float value) voidsetTau(float value) voidwrite(JmeExporter ex) Methods inherited from class com.jme3.bullet.joints.PhysicsJoint
destroy, getAppliedImpulse, getBodyA, getBodyB, getObjectId, getPivotA, getPivotB, isCollisionBetweenLinkedBodys, setCollisionBetweenLinkedBodys
-
Constructor Details
-
Point2PointJoint
protected Point2PointJoint() -
Point2PointJoint
public Point2PointJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB) - Parameters:
nodeA- the body for the A end (not null, alias created)nodeB- the body for the B end (not null, alias created)pivotA- local translation of the joint connection point in node ApivotB- local translation of the joint connection point in node B
-
-
Method Details
-
setDamping
public void setDamping(float value) -
setImpulseClamp
public void setImpulseClamp(float value) -
setTau
public void setTau(float value) -
getDamping
public float getDamping() -
getImpulseClamp
public float getImpulseClamp() -
getTau
public float getTau() -
write
- Specified by:
writein interfaceSavable- Overrides:
writein classPhysicsJoint- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Overrides:
readin classPhysicsJoint- Throws:
IOException
-
createJoint
protected void createJoint()
-