Matter-js: How do I get the rotation of a body?

Created on 10 Nov 2017  路  2Comments  路  Source: liabru/matter-js

I am running matter-js on a node server, and then serializing the objects to send to a client also running matter-js to render the objects. I scoured the documentation and google but couldn't find an answer...how do I get the rotation of a body?

question

Most helpful comment

You can use body.angle which is in radians.

All 2 comments

You can use body.angle which is in radians.

Ugh I feel dumb. I was staring at that property for hours last night. Thanks @liabru

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cluber22 picture cluber22  路  3Comments

TimuJiang picture TimuJiang  路  4Comments

moe091 picture moe091  路  3Comments

kunchenguid picture kunchenguid  路  3Comments

koko236 picture koko236  路  3Comments