Exemple #1
0
 public static void SetUnitPositionToPlayer(PlayerEntity player, UnitPosition up)
 {
     player.position.Value    = new Vector3(up.GetX(), up.GetY(), up.GetZ());
     player.orientation.Yaw   = up.GetYaw();
     player.orientation.Pitch = up.GetPitch();
 }