playMaker

Author Topic: NPC Collisions  (Read 1311 times)

richardh

  • Junior Playmaker
  • **
  • Posts: 97
NPC Collisions
« on: January 08, 2015, 09:30:15 AM »
Should I set an NPC/enemy to have collisions? I'm setting up an enemy way point system and I want the enemy to patrol an area (four way points) on loop. When he sees the player (ray cast to hit player) he will then go on the attack. If the player hides, after 10 seconds the enemy will return to his looped patrol. This can all be cone with the enemy having no collisions on a  flat terrain. But in the real game the terrain will be bumpy (hills and troughs etc) and I want the enemy to walk the terrain (up hills etc). If I set to no collisions then he will fall through the terrain. If I set collisions everything works BUT if his path is blocked or if the player bumps into him then the meshes shoot off and bounce and ricochet all over the place.

what's the advice on setting something like this up please?

thanks