public Vector3 GetDirection(DrawableGameComponent component)
        {
            Vector3 direction = component.Position - Position;

            direction.Y = 0;
            direction.Normalize();
            return(direction);
        }
 public NetworkPacketAddItem(byte id, DrawableGameComponent item)
     : base(NetworkPacketTypes.AddItem, id, 0, item)
 {
 }
Exemple #3
0
 public bool Intersects(DrawableGameComponent component)
 {
     return(GetBoundingCylinder().Intersects(component.GetBoundingCylinder()));
 }