Matter-js: Circle disable rotation

Created on 10 Nov 2017  路  1Comment  路  Source: liabru/matter-js

I have a circle falling on a static rectangle (ground). Somehow it starts rotating whilst falling (gains angular velocity?) which makes it 'roll' on the rectangle's surface.

What would be the best / most performant / cleanest way of disabling the rotation on a circle body?

question

Most helpful comment

Try this:

var circle = Bodies.circle(x, y, 10, { inertia: Infinity });

>All comments

Try this:

var circle = Bodies.circle(x, y, 10, { inertia: Infinity });
Was this page helpful?
0 / 5 - 0 ratings

Related issues

car1ot picture car1ot  路  3Comments

jack-guy picture jack-guy  路  3Comments

elrodsj picture elrodsj  路  3Comments

ShadewEnder picture ShadewEnder  路  3Comments

probityrules picture probityrules  路  4Comments