add rope support
This commit is contained in:
parent
ccc77490ea
commit
ff0ac094cf
7 changed files with 91 additions and 19 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue