Closed GoogleCodeExporter closed 8 years ago
Note from mwebi on discussion groups:
Yeah, I managed to set the rotation of a physics object yesterday.
I had to hack a bit into the engine though. I added a setRotation() in
component.basebody.js
What i added:
//rotation hack
setRotation: function(angle) {
this.getBodyDef().rotation=angle;
},
//rotation hack2
getRotationRAD: function() {
return this.getBodyDef().rotation;
},
Original comment by bfatt...@gmail.com
on 4 Jan 2011 at 2:31
Original comment by bfatt...@gmail.com
on 4 Jan 2011 at 2:32
This issue has been resolved in v2.0 thru the usage of Box2dWeb library.
Original comment by bfatt...@gmail.com
on 10 Feb 2011 at 8:12
Original issue reported on code.google.com by
webidor...@gmail.com
on 13 Dec 2010 at 8:15