mirror of
https://github.com/liabru/matter-js.git
synced 2025-01-13 16:18:50 -05:00
added speed setters to Body.set
This commit is contained in:
parent
6579dfd83e
commit
3ff6ff4372
1 changed files with 6 additions and 0 deletions
|
@ -251,6 +251,12 @@ var Axes = require('../geometry/Axes');
|
|||
case 'angularVelocity':
|
||||
Body.setAngularVelocity(body, value);
|
||||
break;
|
||||
case 'speed':
|
||||
Body.setSpeed(body, value);
|
||||
break;
|
||||
case 'angularSpeed':
|
||||
Body.setAngularSpeed(body, value);
|
||||
break;
|
||||
case 'parts':
|
||||
Body.setParts(body, value);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue