From 54f1f2e2c503c58fe2422f43e1d98d7a505a2f4e Mon Sep 17 00:00:00 2001 From: NintenHero <37460517+MichaelHinrichs@users.noreply.github.com> Date: Mon, 25 Sep 2023 03:50:26 -0400 Subject: [PATCH] convert validate to static method. --- src/collision/shape/PolygonShape.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collision/shape/PolygonShape.ts b/src/collision/shape/PolygonShape.ts index fefc5e1c3..8109237f9 100644 --- a/src/collision/shape/PolygonShape.ts +++ b/src/collision/shape/PolygonShape.ts @@ -510,7 +510,7 @@ export class PolygonShape extends Shape { * Validate convexity. This is a very time consuming operation. * @returns true if valid */ - validate(): boolean { + static validate(): boolean { for (let i = 0; i < this.m_count; ++i) { const i1 = i; const i2 = i < this.m_count - 1 ? i1 + 1 : 0;