Package com.jme3.bullet.joints
Class PhysicsJoint
java.lang.Object
com.jme3.bullet.joints.PhysicsJoint
- All Implemented Interfaces:
- Savable
- Direct Known Subclasses:
- ConeJoint,- HingeJoint,- Point2PointJoint,- SixDofJoint,- SliderJoint
PhysicsJoint - Basic Physics Joint
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected com.bulletphysics.dynamics.constraintsolver.TypedConstraintprotected PhysicsRigidBodyprotected PhysicsRigidBodyprotected Vector3fprotected Vector3f
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedPhysicsJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddestroy()destroys this joint and removes it from its connected PhysicsRigidBody's joint listsfloatgetBodyA()getBodyB()com.bulletphysics.dynamics.constraintsolver.TypedConstraintbooleanvoidread(JmeImporter im) voidsetCollisionBetweenLinkedBodys(boolean collisionBetweenLinkedBodies) toggles collisions between linked bodies
 joint has to be removed from and added to PhysicsSpace to apply this.voidwrite(JmeExporter ex) 
- 
Field Details- 
constraintprotected com.bulletphysics.dynamics.constraintsolver.TypedConstraint constraint
- 
nodeA
- 
nodeB
- 
pivotA
- 
pivotB
- 
collisionBetweenLinkedBodysprotected boolean collisionBetweenLinkedBodys
 
- 
- 
Constructor Details- 
PhysicsJointprotected PhysicsJoint()
- 
PhysicsJointpublic PhysicsJoint(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 A
- pivotB- local translation of the joint connection point in node B
 
 
- 
- 
Method Details- 
getAppliedImpulsepublic float getAppliedImpulse()
- 
getObjectIdpublic com.bulletphysics.dynamics.constraintsolver.TypedConstraint getObjectId()- Returns:
- the constraint
 
- 
isCollisionBetweenLinkedBodyspublic boolean isCollisionBetweenLinkedBodys()- Returns:
- the collisionBetweenLinkedBodys
 
- 
setCollisionBetweenLinkedBodyspublic void setCollisionBetweenLinkedBodys(boolean collisionBetweenLinkedBodies) toggles collisions between linked bodies
 joint has to be removed from and added to PhysicsSpace to apply this.- Parameters:
- collisionBetweenLinkedBodies- set to false to have no collisions between linked bodies
 
- 
getBodyA
- 
getBodyB
- 
getPivotA
- 
getPivotB
- 
destroypublic void destroy()destroys this joint and removes it from its connected PhysicsRigidBody's joint lists
- 
write- Specified by:
- writein interface- Savable
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Throws:
- IOException
 
 
-