mirror of
https://github.com/liabru/matter-js.git
synced 2024-11-27 09:50:52 -05:00
removed Body.updateProperties (now a private method)
This commit is contained in:
parent
8acfdb7f38
commit
7694b7d4f8
1 changed files with 5 additions and 4 deletions
|
@ -56,7 +56,7 @@ var Body = {};
|
|||
|
||||
var body = Common.extend(defaults, options);
|
||||
|
||||
Body.updateProperties(body);
|
||||
_initProperties(body);
|
||||
|
||||
return body;
|
||||
};
|
||||
|
@ -80,11 +80,12 @@ var Body = {};
|
|||
};
|
||||
|
||||
/**
|
||||
* Description
|
||||
* @method updateProperties
|
||||
* Initialises body properties
|
||||
* @method _initProperties
|
||||
* @private
|
||||
* @param {body} body
|
||||
*/
|
||||
Body.updateProperties = function(body) {
|
||||
var _initProperties = function(body) {
|
||||
// calculated properties
|
||||
body.vertices = body.vertices || Vertices.fromPath(body.render.path);
|
||||
body.axes = body.axes || Axes.fromVertices(body.vertices);
|
||||
|
|
Loading…
Reference in a new issue