public void SetDestination(Vector3I location) { SetRotation(location); _destination = location.ToVector3D() + BotComponent.TileOffset; }
public void Teleport(Vector3I location) { Rotation = (int)RotationNum.North; Entity.Physics.ForcedPosition(location.ToVector3D() + BotComponent.TileOffset); }
public void ToVector3D() { Vector3I a = new Vector3I(1, 2, 3); Vector3D sA = a.ToVector3D(); Assert.AreEqual(1.0, sA.X); Assert.AreEqual(2.0, sA.Y); Assert.AreEqual(3.0, sA.Z); }