GreenJuiceTeam/GreenJuiceTeam.Shared/game/Player.cpp
/**
* Projects the current position of the 3D in the 2D plane
* @param camera
*/
Projects the current position of the 3D in the 2D plane
Projects the current position of the 3D in the 2D plane
void Player::projectPosition(const std::vector<int>& camera){
	view[Z] = position[Z] - camera[Z];
	view[Y] = camera[Y] - position[Y];
	view[X] = camera[X] - position[X];
	refPos[X] = project(view[X], view[Z]);
	refPos[Y] = project(view[Y], view[Z]);
}
void Player :: projectPosition ( const std :: vector < int > & camera ) { view [ Z ] = position [ Z ] - camera [ Z ] ; view [ Y ] = camera [ Y ] - position [ Y ] ; view [ X ] = camera [ X ] - position [ X ] ; refPos [ X ] = project ( view [ X ] , view [ Z ] ) ; refPos [ Y ] = project ( view [ Y ] , view [ Z ] ) ; }
Projects the current position of the 3D in the 2D plane
Projects the current position of the 3D in the 2D plane