mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-23 09:26:51 -05:00
fixed Body.create with no options
This commit is contained in:
parent
4da2e25f24
commit
0e5a4579b6
1 changed files with 3 additions and 1 deletions
|
@ -122,9 +122,11 @@ var Axes = require('../geometry/Axes');
|
||||||
* @method _initProperties
|
* @method _initProperties
|
||||||
* @private
|
* @private
|
||||||
* @param {body} body
|
* @param {body} body
|
||||||
* @param {} options
|
* @param {} [options]
|
||||||
*/
|
*/
|
||||||
var _initProperties = function(body, options) {
|
var _initProperties = function(body, options) {
|
||||||
|
options = options || {};
|
||||||
|
|
||||||
// init required properties (order is important)
|
// init required properties (order is important)
|
||||||
Body.set(body, {
|
Body.set(body, {
|
||||||
bounds: body.bounds || Bounds.create(body.vertices),
|
bounds: body.bounds || Bounds.create(body.vertices),
|
||||||
|
|
Loading…
Reference in a new issue