Skip to content

Commit

Permalink
Change clampVec2 arg to Vec2Value
Browse files Browse the repository at this point in the history
  • Loading branch information
shakiba committed Dec 23, 2024
1 parent fe31a91 commit bee0e16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/five-balloons-bake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"planck": patch
---

Change clampVec2 arg to Vec2Value
2 changes: 1 addition & 1 deletion src/common/Vec2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ export class Vec2 {
}

/** @hidden */
static clampVec2(v: Vec2Value, min?: Vec2, max?: Vec2): Vec2Value {
static clampVec2(v: Vec2Value, min?: Vec2Value, max?: Vec2Value): Vec2Value {
return {
x: clamp(v.x, min?.x, max?.x),
y: clamp(v.y, min?.y, max?.y)
Expand Down

0 comments on commit bee0e16

Please sign in to comment.