Skip to content

Instantly share code, notes, and snippets.

@JuJuBoSc
Created May 25, 2017 18:08
Show Gist options
  • Save JuJuBoSc/abbcbbea1981588530cb0de0d902b2a1 to your computer and use it in GitHub Desktop.
Save JuJuBoSc/abbcbbea1981588530cb0de0d902b2a1 to your computer and use it in GitHub Desktop.
public static Vector3 FromWowToRecast(Vector3 p_WowVector)
{
return new Vector3(p_WowVector.Y, p_WowVector.Z, p_WowVector.X);
}
public static Vector3 FromRecastToWow(Vector3 p_WowVector)
{
return new Vector3(p_WowVector.Z, p_WowVector.X, p_WowVector.Y);
}
public const float MAX_NUMBER_OF_CELLS = 8;
public const float MAX_NUMBER_OF_GRIDS = 64 ;
public const float SIZE_OF_GRIDS = 533.3333f ;
public const float CENTER_GRID_ID = (MAX_NUMBER_OF_GRIDS/2) ;
public const float CENTER_GRID_OFFSET =(SIZE_OF_GRIDS/2) ;
public const float MIN_MAP_UPDATE_DELAY =50 ;
public const float SIZE_OF_GRID_CELL =(SIZE_OF_GRIDS/MAX_NUMBER_OF_CELLS) ;
public const float CENTER_GRID_CELL_ID =(MAX_NUMBER_OF_CELLS*MAX_NUMBER_OF_GRIDS/2) ;
public const float CENTER_GRID_CELL_OFFSET =(SIZE_OF_GRID_CELL/2) ;
public const float TOTAL_NUMBER_OF_CELLS_PER_MAP = (MAX_NUMBER_OF_GRIDS*MAX_NUMBER_OF_CELLS) ;
public const float MAP_RESOLUTION =128 ;
public const float MAP_SIZE =(SIZE_OF_GRIDS*MAX_NUMBER_OF_GRIDS) ;
public const float MAP_HALFSIZE =(MAP_SIZE/2) ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment