mirror of
https://github.com/liabru/matter-js.git
synced 2025-03-10 00:06:42 -04: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
|
* @param {number} rotation
|
||||||
*/
|
*/
|
||||||
Body.rotate = function(body, rotation) {
|
Body.rotate = function(body, rotation) {
|
||||||
Body.setAngle(body, body.angle + angle);
|
Body.setAngle(body, body.angle + rotation);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue