Browse Source

Documented changes

Jorrit Rouwe 1 year ago
parent
commit
8691a4ff82
2 changed files with 5 additions and 1 deletions
  1. 3 1
      Docs/APIChanges.md
  2. 2 0
      Docs/ReleaseNotes.md

+ 3 - 1
Docs/APIChanges.md

@@ -6,7 +6,9 @@ Changes that make some state saved through SaveBinaryState from a prior version
 
 ## Changes between v4.0.1 and latest
 
-* 20231203 - VehicleConstraint::CombineFunction got two additional parameters to identify which wheel is requesting friction (8d80155f93d0d0c3ffe3dd46550650b9c830d304)
+* 20231208 - Changed the meaning of Constraint::mNumVelocity/PositionStepsOverride. Before the number of steps would be the maximum of all constraints and the default value, now an overridden value of 0 means that the constraint uses the default value, otherwise it will use the value as specified. This means that if all constraints in an island have a lower value than the default, we will now use the lower value instead of the default. (0771808a03b850d16f1c64156f0aee827ca3706b)
+* 20231208 - *SBS* - Bodies can now also override the default number of solver iterations. This value is used when the body collides with another body and a contact constraint is created (for constraints, the constraint override is always used). (0771808a03b850d16f1c64156f0aee827ca3706b)
+* 20231203 - VehicleConstraint::CombineFunction got two additional parameters to identify which wheel is requesting friction. (8d80155f93d0d0c3ffe3dd46550650b9c830d304)
 
 ## Changes between v4.0.0 and v4.0.1
 

+ 2 - 0
Docs/ReleaseNotes.md

@@ -4,6 +4,8 @@ For breaking API changes see [this document](https://github.com/jrouwe/JoltPhysi
 
 ## Unreleased changes
 
+* Changed the meaning of Constraint::mNumVelocity/PositionStepsOverride. Before the number of steps would be the maximum of all constraints and the default value, now an overridden value of 0 means that the constraint uses the default value, otherwise it will use the value as specified. This means that if all constraints in an island have a lower value than the default, we will now use the lower value instead of the default. This allows simulating an island at a lower precision than the default.
+* Bodies can now also override the default number of solver iterations. This value is used when the body collides with another body and a contact constraint is created (for constraints, the constraint override is always used).
 * Added BodyInterface::SetUseManifoldReduction which will clear the contact cache and ensure that you get consistent contact callbacks in case the body that you're changing already has contacts.
 * Created implementations of BroadPhaseLayerInterface, ObjectVsBroadPhaseLayerFilter and ObjectLayerPairFilter that use a bit table internally. These make it easier to define ObjectLayers which object layers collide.
 * Support for compiling with ninja on Windows.