Beispiel #1
0
 public void Move(Vector2 displacement)
 {
     // TODO: ensure that transform.position is always updated after physicsEntity's transformPosition is updated (update() and move()) ?
     physicsEntity.Move(displacement);
     transform.position = physicsEntity.transformPosition;
 }