Package com.jme3.bullet.joints
Class SoftAngularJoint
java.lang.Object
com.jme3.bullet.NativePhysicsObject
com.jme3.bullet.joints.PhysicsJoint
com.jme3.bullet.joints.SoftPhysicsJoint
com.jme3.bullet.joints.SoftAngularJoint
- All Implemented Interfaces:
Comparable<NativePhysicsObject>
A SoftPhysicsJoint that allows rotation around an axis, based on Bullet's
btSoftBody::AJoint.
-
Field Summary
Fields inherited from class com.jme3.bullet.joints.SoftPhysicsJoint
logger2
Fields inherited from class com.jme3.bullet.joints.PhysicsJoint
logger
Fields inherited from class com.jme3.bullet.NativePhysicsObject
loggerN
-
Constructor Summary
ConstructorDescriptionSoftAngularJoint
(Vector3f axis, PhysicsSoftBody softA, int clusterIndexA, PhysicsRigidBody rigidB) Instantiate a soft-rigid angular joint.SoftAngularJoint
(Vector3f axis, PhysicsSoftBody softA, int clusterIndexA, PhysicsSoftBody softB, int clusterIndexB) Instantiate a soft-soft angular joint. -
Method Summary
Methods inherited from class com.jme3.bullet.joints.SoftPhysicsJoint
checkParameters, clusterIndexA, clusterIndexB, finalizeNative, getCFM, getERP, getSoftBodyA, getSoftBodyB, getSplit, isEnabled, isSoftRigid, isSoftSoft, setCFM, setERP, setSplit
Methods inherited from class com.jme3.bullet.joints.PhysicsJoint
countEnds, destroy, findEnd, findOtherBody, getBody, getBodyA, getBodyB, getPhysicsSpace, setBodyA, setBodyB, setNativeId, setPhysicsSpace, toString
Methods inherited from class com.jme3.bullet.NativePhysicsObject
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeIdNotTracked, unassignNativeObject
-
Field Details
-
logger3
message logger for this class
-
-
Constructor Details
-
SoftAngularJoint
public SoftAngularJoint(Vector3f axis, PhysicsSoftBody softA, int clusterIndexA, PhysicsRigidBody rigidB) Instantiate a soft-rigid angular joint.- Parameters:
axis
- the axis of the joint (in physics-space coordinates, not null, unaffected)softA
- the soft body for the A end (not null, alias created)clusterIndexA
- the index of the cluster for the A end (≥0)rigidB
- the rigid body for the B end (not null, alias created)
-
SoftAngularJoint
public SoftAngularJoint(Vector3f axis, PhysicsSoftBody softA, int clusterIndexA, PhysicsSoftBody softB, int clusterIndexB) Instantiate a soft-soft angular joint. Each soft body must contain a cluster.- Parameters:
axis
- the axis of the joint (in physics-space coordinates, not null, unaffected)softA
- the soft body for the A end (not null, alias created)clusterIndexA
- the index of the cluster for the A end (≥0)softB
- the soft body for the B end (not null, alias created)clusterIndexB
- the index of the cluster for the B end (≥0)
-
-
Method Details
-
copyAxis
Copy the joint axis.- Parameters:
storeResult
- storage for the result (modified if not null)- Returns:
- the axis (in physics-space coordinates, either storeResult or a new vector, not null)
-
setAxis
Alter the joint axis.- Parameters:
newAxis
- the desired axis (in physics-space coordinates, not null, unaffected)
-