Пример #1
0
 internal void Move(Fix64Vector2 dir)
 {
     if (IsStatic)
     {
         throw new Exception("静态物体不可移动");
     }
     if (IsCollisionAble == false)
     {
         return;
     }
     if (IsCollsioning == false)
     {
         tr.Pos += dir / (Fix64)10;
     }
     else
     {
         tr.Pos += CollisionDir.Nomalize() / (Fix64)20;
     }
     PhysicsManager.Instance.Move(this);
 }