Change the default number of iterations of the velocity and position solver
This commit is contained in:
parent
2078971331
commit
79c42fa36e
|
@ -16,6 +16,8 @@ do not hesitate to take a look at the user manual.
|
|||
|
||||
- Rolling resistance constraint is not solved anymore in the solver. Angular damping needs to be used instead to simulate this
|
||||
- The List class has been renamed to Array
|
||||
- The default number of iterations for the velocity solver is now 6 instead of 10
|
||||
- The default number of iterations for the position solver is now 3 instead of 5
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -127,8 +127,8 @@ class PhysicsWorld {
|
|||
defaultBounciness = decimal(0.5);
|
||||
restitutionVelocityThreshold = decimal(0.5);
|
||||
isSleepingEnabled = true;
|
||||
defaultVelocitySolverNbIterations = 10;
|
||||
defaultPositionSolverNbIterations = 5;
|
||||
defaultVelocitySolverNbIterations = 6;
|
||||
defaultPositionSolverNbIterations = 3;
|
||||
defaultTimeBeforeSleep = 1.0f;
|
||||
defaultSleepLinearVelocity = decimal(0.02);
|
||||
defaultSleepAngularVelocity = decimal(3.0) * (PI_RP3D / decimal(180.0));
|
||||
|
|
Loading…
Reference in New Issue
Block a user