add rope support

This commit is contained in:
Asraelite 2016-03-26 18:43:34 +00:00
parent ccc77490ea
commit ff0ac094cf
7 changed files with 91 additions and 19 deletions

View file

@ -70,6 +70,13 @@ class Body {
packFull() {
}
get com() {
return {
x: this.b2body.GetLocalCenter().x,
y: this.b2body.GetLocalCenter().y
}
}
get center() {
return {
x: this.b2body.GetWorldCenter().x,