Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Several stability improvements are added as part of this release.
See rapier#625 for overviews of the most important improvements.
Modified
castShape
andcastCollider
functions have been modified to add atargetDistance
parameter. This parameterindicates the distance below which a hit is detected.
RayIntersection.toi
to.timeOfImpact
for better clarity.RayColliderIntersection.toi
to.timeOfImpact
for better clarity.RayColliderToi
toRayColliderHit
.RayColliderHit.toi
to.timeOfImpact
for better clarity.ShapeTOI
toShapeCastHit
.ShapeColliderTOI
toColliderShapeCastHit
.ShapeCastHit.toi
to.timeOfImpact
.Added
KinematicCharacterController.normalNudgeFactor
and.setNormalNudgeFactor
so set a coefficient used foravoiding having the character controller get stuck on penetrations.
RigidBody.softCcdPrediction
,.setSoftCcdPrediction
, andRigidBodyDesc.setSoftCcdPrediction
for configuringsoft-ccd on the rigid-body. See rapier#625 for additional details on
soft-ccd.
TriMeshFlags::FIX_INTERNAL_EDGES
andHeightFieldFlags::FIX_INTERNAL_EDGES
for enablinginternal edges correction (which is no longer enabled by default). The flags have been added as an optional parameter
when building the shapes.
Collider.contactSkin
,.setContactSkin
, andColliderDesc.setContactSkin
for configuring the collider’scontact skin. See rapier#625 for additional details on contact skins.
World.lengthUnit
which can be used to indicate the typical size of dynamic objects (e.g. 100 pixels instead of1 meter). This helps the physics engine adjust internal thresholds for better results.
Fixed
Fix #268
Fix #261
Fix #191