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
ModifierConstructorDescriptionprotected
Point2PointJoint
(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
float
float
float
getTau()
void
read
(JmeImporter im) void
setDamping
(float value) void
setImpulseClamp
(float value) void
setTau
(float value) void
write
(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:
write
in interfaceSavable
- Overrides:
write
in classPhysicsJoint
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classPhysicsJoint
- Throws:
IOException
-
createJoint
protected void createJoint()
-