From 51a4539b3b22c2aa39ed99e6e4548c11eb1dc475 Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Thu, 13 Jun 2024 10:41:39 +0200 Subject: [PATCH] fix: Fixed typo in `castShape` functions --- src.ts/geometry/collider.ts | 4 ++-- src.ts/geometry/shape.ts | 2 +- src.ts/pipeline/query_pipeline.ts | 2 +- src.ts/pipeline/world.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src.ts/geometry/collider.ts b/src.ts/geometry/collider.ts index fa0096d1..edf72c9c 100644 --- a/src.ts/geometry/collider.ts +++ b/src.ts/geometry/collider.ts @@ -847,7 +847,7 @@ export class Collider { * limits the distance traveled by the shape to `collider1Vel.norm() * maxToi`. * @param stopAtPenetration - If set to `false`, the linear shape-cast won’t immediately stop if * the shape is penetrating another shape at its starting point **and** its trajectory is such - * that it’s on a path to exist that penetration state. + * that it’s on a path to exit that penetration state. */ public castShape( collider1Vel: Vector, @@ -901,7 +901,7 @@ export class Collider { * limits the distance traveled by the shape to `shapeVel.norm() * maxToi`. * @param stopAtPenetration - If set to `false`, the linear shape-cast won’t immediately stop if * the shape is penetrating another shape at its starting point **and** its trajectory is such - * that it’s on a path to exist that penetration state. + * that it’s on a path to exit that penetration state. */ public castCollider( collider1Vel: Vector, diff --git a/src.ts/geometry/shape.ts b/src.ts/geometry/shape.ts index 5e58d2a7..060eba94 100644 --- a/src.ts/geometry/shape.ts +++ b/src.ts/geometry/shape.ts @@ -211,7 +211,7 @@ export abstract class Shape { * @param maxToi - The maximum time when the impact can happen. * @param stopAtPenetration - If set to `false`, the linear shape-cast won’t immediately stop if * the shape is penetrating another shape at its starting point **and** its trajectory is such - * that it’s on a path to exist that penetration state. + * that it’s on a path to exit that penetration state. * @returns If the two moving shapes collider at some point along their trajectories, this returns the * time at which the two shape collider as well as the contact information during the impact. Returns * `null`if the two shapes never collide along their paths. diff --git a/src.ts/pipeline/query_pipeline.ts b/src.ts/pipeline/query_pipeline.ts index 502d0c00..63dc842c 100644 --- a/src.ts/pipeline/query_pipeline.ts +++ b/src.ts/pipeline/query_pipeline.ts @@ -424,7 +424,7 @@ export class QueryPipeline { * limits the distance traveled by the shape to `shapeVel.norm() * maxToi`. * @param stopAtPenetration - If set to `false`, the linear shape-cast won’t immediately stop if * the shape is penetrating another shape at its starting point **and** its trajectory is such - * that it’s on a path to exist that penetration state. + * that it’s on a path to exit that penetration state. * @param groups - The bit groups and filter associated to the shape to cast, in order to only * test on colliders with collision groups compatible with this group. */ diff --git a/src.ts/pipeline/world.ts b/src.ts/pipeline/world.ts index 99eac534..b0fe42d4 100644 --- a/src.ts/pipeline/world.ts +++ b/src.ts/pipeline/world.ts @@ -953,7 +953,7 @@ export class World { * limits the distance traveled by the shape to `shapeVel.norm() * maxToi`. * @param stopAtPenetration - If set to `false`, the linear shape-cast won’t immediately stop if * the shape is penetrating another shape at its starting point **and** its trajectory is such - * that it’s on a path to exist that penetration state. + * that it’s on a path to exit that penetration state. * @param groups - The bit groups and filter associated to the shape to cast, in order to only * test on colliders with collision groups compatible with this group. */