public class SoftBodyWorldInfo extends NativePhysicsObject
btSoftBodyWorldInfo.
NOTE: When a PhysicsSoftBody is added to a PhysicsSoftSpace, it acquires the SoftBodyWorldInfo of that space. To customize a body, assign it a new info after adding it to the space.
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
loggerN| Constructor and Description |
|---|
SoftBodyWorldInfo()
Instantiate an info that refers to a new btSoftBodyWorldInfo with the
default parameters.
|
SoftBodyWorldInfo(long nativeId)
Instantiate an info that refers to the identified native object.
|
| Modifier and Type | Method and Description |
|---|---|
float |
airDensity()
Read the air density.
|
void |
copyAll(SoftBodyWorldInfo source)
Copy all parameter values from the specified info.
|
Vector3f |
copyGravity(Vector3f storeResult)
Copy the gravitational acceleration.
|
Vector3f |
copyWaterNormal(Vector3f storeResult)
Copy the normal direction of the water surface.
|
float |
maxDisplacement()
Read the maximum distance a node can travel per simulation step.
|
void |
setAirDensity(float density)
Alter the air density.
|
void |
setGravity(Vector3f acceleration)
Alter the gravitational acceleration.
|
void |
setMaxDisplacement(float maxDisplacement)
Alter the maximum distance a node can travel per simulation step.
|
void |
setWaterDensity(float density)
Alter the water density.
|
void |
setWaterNormal(Vector3f normalDirection)
Alter the water normal.
|
void |
setWaterOffset(float offset)
Alter the water offset.
|
float |
waterDensity()
Read the water density.
|
float |
waterOffset()
Read the water offset.
|
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObjectpublic static final java.util.logging.Logger logger
public SoftBodyWorldInfo()
public SoftBodyWorldInfo(long nativeId)
nativeId - the ID of a pre-existing btSoftBodyWorldInfo (not zero)public float airDensity()
public void copyAll(SoftBodyWorldInfo source)
source - the info to copy from (not null, unaffected)public Vector3f copyGravity(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public Vector3f copyWaterNormal(Vector3f storeResult)
storeResult - storage for the result (modified if not null)public float maxDisplacement()
public void setAirDensity(float density)
density - the desired density (default=1.2)public void setGravity(Vector3f acceleration)
acceleration - the desired acceleration vector (in physics-space
coordinates, not null, unaffected, default=(0,-10,0))public void setMaxDisplacement(float maxDisplacement)
maxDisplacement - the desired value (>0, default=1000)public void setWaterDensity(float density)
density - the desired density (default=0)public void setWaterNormal(Vector3f normalDirection)
normalDirection - the desired normal direction (not null,
unaffected, default=(0,0,0))public void setWaterOffset(float offset)
offset - the desired offset distance (in physics-space units,
default=0)public float waterDensity()
public float waterOffset()