mirror of
https://github.com/liabru/matter-js.git
synced 2024-12-27 13:59:01 -05:00
fixed Body.rotate
This commit is contained in:
parent
89140aedf0
commit
c5212e1ba4
1 changed files with 1 additions and 1 deletions
|
@ -287,7 +287,7 @@ var Body = {};
|
|||
* @param {number} rotation
|
||||
*/
|
||||
Body.rotate = function(body, rotation) {
|
||||
Body.setAngle(body, body.angle + angle);
|
||||
Body.setAngle(body, body.angle + rotation);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue