diff --git a/src/serialize/GameObject.js b/src/serialize/GameObject.js index 29d9170..d22a110 100644 --- a/src/serialize/GameObject.js +++ b/src/serialize/GameObject.js @@ -111,13 +111,12 @@ class GameObject extends Serializable { /** * synchronize this object to the state of an other object - * @param {GameObject} other + * @param {GameObject} other the other object to synchronize to */ syncTo(other) { - this.id = other.id; + super.syncTo(other); } - // copy physical attributes to physics sub-object refreshToPhysics() {}