public class ReducedDeformableBody extends PhysicsSoftBody
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger3
message logger for this class
|
logger2massForStaticCOLLISION_GROUP_01, COLLISION_GROUP_02, COLLISION_GROUP_03, COLLISION_GROUP_04, COLLISION_GROUP_05, COLLISION_GROUP_06, COLLISION_GROUP_07, COLLISION_GROUP_08, COLLISION_GROUP_09, COLLISION_GROUP_10, COLLISION_GROUP_11, COLLISION_GROUP_12, COLLISION_GROUP_13, COLLISION_GROUP_14, COLLISION_GROUP_15, COLLISION_GROUP_16, COLLISION_GROUP_NONE, loggerloggerN| Constructor and Description |
|---|
ReducedDeformableBody(Vector3f[] locations,
float[] masses)
Instantiate a deformable body with the specified nodes.
|
| Modifier and Type | Method and Description |
|---|---|
Vector3f |
getLinearVelocity(Vector3f storeResult)
Copy the rigid velocity.
|
boolean |
isReducedModesEnabled()
Test whether reduced modes are enabled.
|
protected void |
newEmptySoftBody()
Create an empty
btReducedDeformableBody for this
ReducedDeformableBody, using the pre-existing worldInfo. |
void |
pinNode(int nodeIndex)
Pin a node.
|
void |
setDamping(float alpha,
float beta)
Alter the Rayleigh damping parameters.
|
void |
setLinearVelocity(Vector3f velocity)
Alter the rigid velocity.
|
void |
setReducedModes(int numReduced,
int numFull)
Alter the number of modes.
|
void |
setReducedModesEnabled(boolean enable)
Enable/disable reduced modes.
|
void |
setStiffnessScale(float scale)
Alter the stiffness scale.
|
addVelocity, addVelocity, appendFaces, appendLinks, appendNodes, appendTetras, applyForce, applyForce, applyRotation, applyScale, applyTransform, applyTranslation, boundingBox, clusterCenter, copyClusterCenters, copyClusterMasses, copyClusterVelocities, copyFaces, copyLinks, copyLocations, copyMasses, copyNormals, copyTetras, copyVelocities, countClusters, countFaces, countLinks, countNodes, countNodesInCluster, countPinnedNodes, countTetras, cutLink, destroySoftBody, generateBendingConstraints, generateClusters, generateClusters, get, getGravity, getMass, getPhysicsLocation, getPhysicsLocationDp, getPhysicsRotation, getPhysicsRotationDp, getPhysicsRotationMatrix, getPhysicsRotationMatrixDp, getScale, getSoftConfig, getSoftMaterial, getWorldInfo, initDefault, isCollisionAllowed, isEmpty, isWorldInfoProtected, listNodesInCluster, margin, nodeLocation, nodeMass, nodeNormal, nodeVelocity, randomizeConstraints, releaseAllClusters, releaseCluster, resetRestingLengths, restingLengthsScale, set, setConfig, setGravity, setMargin, setMass, setMassByArea, setMassByCurrent, setMasses, setMassFromDensity, setNodeMass, setNodeVelocity, setNormals, setPhysicsLocation, setPhysicsLocationDp, setPose, setProtectWorldInfo, setRestingLengthScale, setVelocities, setVelocity, setVolumeDensity, setVolumeMass, setWindVelocity, setWorldInfo, setWorldInfoInternal, volume, windVelocityaddJoint, countJoints, getDeactivationDeadline, isDeactivationEnabled, listJoints, removeJoint, setDeactivationDeadline, setDeactivationEnabledactivate, addCollideWithGroup, addToIgnoreList, attachCollisionShape, clearIgnoreList, collisionFlags, copyPcoProperties, countIgnored, finalizeNative, findInstance, getActivationState, getAnisotropicFriction, getCcdMotionThreshold, getCcdSquareMotionThreshold, getCcdSweptSphereRadius, getCollideWithGroups, getCollisionGroup, getCollisionShape, getCollisionSpace, getContactDamping, getContactProcessingThreshold, getContactStiffness, getDeactivationTime, getFriction, getInternalType, getRestitution, getRollingFriction, getSpinningFriction, getTransform, getTransformDp, getUserObject, hasAnisotropicFriction, ignores, initUserPointer, isActive, isContactResponse, isInWorld, isStatic, listIgnoredPcos, proxyGroup, proxyMask, removeCollideWithGroup, removeFromIgnoreList, setActivationState, setAnisotropicFriction, setCcdMotionThreshold, setCcdSweptSphereRadius, setCollideWithGroups, setCollisionFlags, setCollisionGroup, setCollisionShape, setContactDamping, setContactProcessingThreshold, setContactStiffness, setDeactivationTime, setFriction, setIgnoreList, setLocationAndBasis, setRestitution, setRollingFriction, setSpinningFriction, setUserIndex, setUserIndex2, setUserIndex3, setUserObject, spaceId, toString, userIndex, userIndex2, userIndex3compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, unassignNativeObjectpublic static final java.util.logging.Logger logger3
public ReducedDeformableBody(Vector3f[] locations, float[] masses)
locations - the initial node locations (not null, alias created)masses - the initial node masses (not null, each ≥0, alias
created)public Vector3f getLinearVelocity(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public boolean isReducedModesEnabled()
public void pinNode(int nodeIndex)
nodeIndex - the index of the node (≥0)public void setDamping(float alpha,
float beta)
alpha - the desired alpha value (default=0)beta - the desired beta value (default=0)public void setLinearVelocity(Vector3f velocity)
velocity - the desired value (not null, unaffected)public void setReducedModes(int numReduced,
int numFull)
numReduced - the number of reduced modes (default=0)numFull - the number of full modes (default=0)public void setReducedModesEnabled(boolean enable)
enable - true to enabled reduced modes, false for rigid-only
(default=true)public void setStiffnessScale(float scale)
scale - the desired scale (default=1)protected void newEmptySoftBody()
btReducedDeformableBody for this
ReducedDeformableBody, using the pre-existing worldInfo. The pre-existing
btReducedDeformableBody (if any) will be destroyed.newEmptySoftBody in class PhysicsSoftBody