1
Support / Collision detection between two points?
« on: November 27, 2011, 09:14:48 pm »
Hi. Im trying to detect collision between two Points.
I have create a small AI turret how is looking for the player. But now the AI can see thought the walls.
So i need to check if there is walls between the AI and the player.
I was trying to use:
SimpleVector collideAtWall = AITurret.checkForCollisionSpherical(playerPosition, 10);
And creating a line between Turret and collideAtWall. But the line points at the player Always anyway.
I have create a small AI turret how is looking for the player. But now the AI can see thought the walls.
So i need to check if there is walls between the AI and the player.
I was trying to use:
SimpleVector collideAtWall = AITurret.checkForCollisionSpherical(playerPosition, 10);
And creating a line between Turret and collideAtWall. But the line points at the player Always anyway.