File tree Expand file tree Collapse file tree
src/physics/matter-js/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,14 +209,6 @@ var Transform = {
209209 get : function ( )
210210 {
211211 return this . body . centerOffset . x ;
212-
213- // return this.body.centerOfMass.x;
214-
215- // var body = this.body;
216-
217- // return body.render.sprite.xOffset + ((body.centerOfMass.x - (this.width / 2)) / this.width);
218-
219- // return body.render.sprite.xOffset + ((body.centerOfMass.x - (this.width / 2)) / this.width);
220212 }
221213 } ,
222214
@@ -240,16 +232,6 @@ var Transform = {
240232 get : function ( )
241233 {
242234 return this . body . centerOffset . y ;
243-
244- // return 0.5;
245-
246- // return this.body.centerOfMass.y - this.displayOriginY;
247-
248- // return this.body.centerOfMass.y;
249-
250- // var body = this.body;
251-
252- // return body.render.sprite.yOffset + ((body.centerOfMass.y - (this.height / 2)) / this.height);
253235 }
254236 } ,
255237
You can’t perform that action at this time.
0 commit comments