public class SolverInfo extends NativePhysicsObject
| Modifier and Type | Field and Description |
|---|---|
static java.util.logging.Logger |
logger
message logger for this class
|
loggerN| Modifier and Type | Method and Description |
|---|---|
float |
contactErp()
Return the error-reduction parameter for contact constraints (native
field: m_erp2).
|
void |
copyAll(SolverInfo source)
Copy all parameter values from the specified info.
|
float |
globalCfm()
Determine the global constraint-force mixing parameter (native field:
m_globalCfm).
|
boolean |
isSplitImpulseEnabled()
Test whether split impulse is enabled globally (native field:
m_splitImpulse).
|
float |
jointErp()
Return the error-reduction parameter for non-contact constraints (native
field: m_erp).
|
int |
minBatch()
Determine the minimum batch size (native field:
m_minimumSolverBatchSize).
|
int |
mode()
Determine the mode flags (native field: m_solverMode).
|
int |
numIterations()
Determine the number of iterations (native field: m_numIterations).
|
void |
setContactErp(float erp)
Alter the error-reduction parameter for contact constraints (native
field: m_erp2).
|
void |
setGlobalCfm(float cfm)
Alter the global constraint-force mixing parameter (native field:
m_globalCfm).
|
void |
setJointErp(float erp)
Alter the error-reduction parameter for non-contact constraints (native
field: m_erp).
|
void |
setMinBatch(int numConstraints)
Alter the minimum batch size (native field: m_minimumSolverBatchSize).
|
void |
setMode(int flags)
Alter the mode flags (native field: m_solverMode).
|
void |
setNumIterations(int numIterations)
Alter the number of iterations (native field: m_numIterations).
|
void |
setSplitImpulseEnabled(boolean setting)
Alter whether split impulse is enabled globally (native field:
m_splitImpulse).
|
void |
setSplitImpulseErp(float erp)
Alter the error-reduction parameter (ERP) used with split impulse (native
field: m_splitImpulseTurnErp).
|
void |
setSplitImpulseThreshold(float penetration)
Alter the degree of penetration at which split impulse will be used.
|
float |
splitImpulseErp()
Determine the error-reduction parameter (ERP) used with split impulse
(native field: m_splitImpulseTurnErp).
|
float |
splitImpulseThreshold()
Determine the minimum degree of penetration at which split impulse would
be used, assuming it's not enabled globally (native field:
m_splitImpulsePenetrationThreshold).
|
compareTo, countTrackers, dumpTrackers, equals, freeUnusedObjects, hasAssignedNativeObject, hashCode, nativeId, reassignNativeId, setNativeId, setNativeIdNotTracked, toString, unassignNativeObjectpublic static final java.util.logging.Logger logger
public float contactErp()
public void copyAll(SolverInfo source)
source - the info to copy from (not null, unaffected)public float globalCfm()
public boolean isSplitImpulseEnabled()
public float jointErp()
public int minBatch()
public int mode()
SolverModepublic int numIterations()
public void setContactErp(float erp)
erp - the desired parameter value (default=0.2)public void setGlobalCfm(float cfm)
cfm - the desired parameter value (≥0, default=0)public void setJointErp(float erp)
erp - the desired parameter value (default=0.2)public void setMinBatch(int numConstraints)
numConstraints - the desired number of constraints per batch (≥1,
default=128)public void setMode(int flags)
flags - the desired bitmask (default=0x114 for a MultiBodySpace,
otherwise 0x104)SolverModepublic void setNumIterations(int numIterations)
Use 4 for low quality, 20 for high quality.
numIterations - the desired number of iterations (≥1, default=10)public void setSplitImpulseEnabled(boolean setting)
setting - the desired setting (default=true)public void setSplitImpulseErp(float erp)
erp - the parameter (default=0.1)public void setSplitImpulseThreshold(float penetration)
penetration - the penetration threshold (in physics-space units,
default=-0.04)public float splitImpulseErp()
public float splitImpulseThreshold()