diff --git a/src/collision/shape/PolygonShape.ts b/src/collision/shape/PolygonShape.ts index fefc5e1c..8109237f 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;