Original Post
Hi, I have some problem with the collision between players -> enemys and player -> player.. I have try to use an simple sphere collision like this to get the collision.. then how can I push the players away from the enemys? and playres from each other? point me somewere :S
bool Collision(float EnemyX, float EnemyZ, float PlayerX, float PlayerZ, float range)
{
float dx, dz;
dx=PlayerX-EnemyX;
dz=PlayerZ-EnemyZ;
if (dx*dx + dz*dz < (range*range))
return true;
return false;
}