Package com.jme3.bullet.joints
Class ConeJoint
java.lang.Object
com.jme3.bullet.joints.PhysicsJoint
com.jme3.bullet.joints.ConeJoint
- All Implemented Interfaces:
- Savable
From bullet manual:
To create ragdolls, the cone twist constraint is very useful for limbs like the upper arm. It is a special point to point constraint that adds cone and twist axis limits. The x-axis serves as twist axis.
To create ragdolls, the cone twist constraint is very useful for limbs like the upper arm. It is a special point to point constraint that adds cone and twist axis limits. The x-axis serves as twist axis.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected Matrix3fprotected Matrix3fprotected floatprotected floatprotected floatFields inherited from class com.jme3.bullet.joints.PhysicsJointcollisionBetweenLinkedBodys, constraint, nodeA, nodeB, pivotA, pivotB
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedConeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB) ConeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidvoidread(JmeImporter im) voidsetAngularOnly(boolean value) voidsetLimit(float swingSpan1, float swingSpan2, float twistSpan) voidwrite(JmeExporter ex) Methods inherited from class com.jme3.bullet.joints.PhysicsJointdestroy, getAppliedImpulse, getBodyA, getBodyB, getObjectId, getPivotA, getPivotB, isCollisionBetweenLinkedBodys, setCollisionBetweenLinkedBodys
- 
Field Details- 
rotA
- 
rotB
- 
swingSpan1protected float swingSpan1
- 
swingSpan2protected float swingSpan2
- 
twistSpanprotected float twistSpan
- 
angularOnlyprotected boolean angularOnly
 
- 
- 
Constructor Details- 
ConeJointprotected ConeJoint()
- 
ConeJoint- 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
 
- 
ConeJointpublic ConeJoint(PhysicsRigidBody nodeA, PhysicsRigidBody nodeB, Vector3f pivotA, Vector3f pivotB, Matrix3f rotA, Matrix3f rotB) - 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
- rotA- the joint orientation in A's local coordinates (rotation matrix, alias created)
- rotB- the joint orientation in B's local coordinates (rotation matrix, alias created)
 
 
- 
- 
Method Details- 
setLimitpublic void setLimit(float swingSpan1, float swingSpan2, float twistSpan) 
- 
setAngularOnlypublic void setAngularOnly(boolean value) 
- 
write- Specified by:
- writein interface- Savable
- Overrides:
- writein class- PhysicsJoint
- Throws:
- IOException
 
- 
read- Specified by:
- readin interface- Savable
- Overrides:
- readin class- PhysicsJoint
- Throws:
- IOException
 
- 
createJointprotected void createJoint()
 
-