Skip to content

Commit

Permalink
fix: Fixed typo in castShape functions (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz authored Jun 13, 2024
1 parent a86610f commit 34bd132
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src.ts/geometry/collider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src.ts/geometry/shape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src.ts/pipeline/query_pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
2 changes: 1 addition & 1 deletion src.ts/pipeline/world.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 34bd132

Please sign in to comment.