Class SoftLinearJoint
java.lang.Object
com.jme3.bullet.NativePhysicsObject
com.jme3.bullet.joints.PhysicsJoint
com.jme3.bullet.joints.SoftPhysicsJoint
com.jme3.bullet.joints.SoftLinearJoint
- All Implemented Interfaces:
Comparable<NativePhysicsObject>
A SoftPhysicsJoint based on Bullet's btSoftBody::LJoint.
-
Field Summary
FieldsFields inherited from class SoftPhysicsJoint
logger2Fields inherited from class PhysicsJoint
loggerFields inherited from class NativePhysicsObject
loggerN -
Constructor Summary
ConstructorsConstructorDescriptionSoftLinearJoint(Vector3f location, PhysicsSoftBody softA, int clusterIndexA, PhysicsRigidBody rigidB) Instantiate a soft-rigid linear joint.SoftLinearJoint(Vector3f location, PhysicsSoftBody softA, int clusterIndexA, PhysicsSoftBody softB, int clusterIndexB) Instantiate a soft-soft linear joint. -
Method Summary
Modifier and TypeMethodDescriptioncopyLocation(Vector3f storeResult) Copy the joint location.voidsetLocation(Vector3f newLocation) Alter the joint location.Methods inherited from class SoftPhysicsJoint
checkParameters, clusterIndexA, clusterIndexB, finalizeNative, getCFM, getERP, getSoftBodyA, getSoftBodyB, getSplit, isEnabled, isSoftRigid, isSoftSoft, setCFM, setERP, setSplitMethods inherited from class PhysicsJoint
countEnds, destroy, findEnd, findOtherBody, getBody, getBodyA, getBodyB, getPhysicsSpace, setBodyA, setBodyB, setNativeId, setPhysicsSpace, toStringMethods inherited from class NativePhysicsObject
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeIdNotTracked, unassignNativeObject
-
Field Details
-
logger3
message logger for this class
-
-
Constructor Details
-
SoftLinearJoint
public SoftLinearJoint(Vector3f location, PhysicsSoftBody softA, int clusterIndexA, PhysicsRigidBody rigidB) Instantiate a soft-rigid linear joint.- Parameters:
location- the location 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)
-
SoftLinearJoint
public SoftLinearJoint(Vector3f location, PhysicsSoftBody softA, int clusterIndexA, PhysicsSoftBody softB, int clusterIndexB) Instantiate a soft-soft linear joint. Each soft body must contain a cluster.- Parameters:
location- the location 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
-
copyLocation
-
setLocation
Alter the joint location.- Parameters:
newLocation- the desired location (in physics-space coordinates, not null, unaffected)
-