
Manojit Ghosh • over 9 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.
1 comment
Jasper Manager • over 9 years ago
You've found a bug.
And i think i've found the fix: https://github.com/wellcaffeinated/PhysicsJS/issues/68
Thank you SO much for finding this bug!