•   over 5 years ago

Triangle Problem

I'm getting a quadrilateral instead of a triangle.

Code:
world.add(Physics.body('convex-polygon', {x:347,y: 175,vx: 0,vy: 0,angle: 0,angularVelocity: 0,fixed: true,mass: 1.0,restitution: 1.0,cof: 0.8,vertices:[{x:197,y:242},{x:532,y:244},{x:338,y:45}]}));

Please explain the reason.

Comments are closed.