Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: lucaderiu on May 01, 2013, 06:33:53 PM

Title: Enemy is catching me through the wall [SOLVED]
Post by: lucaderiu on May 01, 2013, 06:33:53 PM
Hello, I am trying to solve a collision problem but i'm stuck without results since days.
In simple words I have an enemy following my character but the enemy is passing trought walls.
I tryed Character Controller+Motor: nothing
tryed mesh convex, box, capsule collision: nothing
The GameObject uses Move Towards with player as target object but I also tryed itween update without success.

How do you solve this problem when an enemy is trying to touch your player and you hide behind a wall? (like in Resident Evil for example).
Thank you very much!
Luca
Title: Re: Enemy is catching me through the wall
Post by: sebaslive on May 01, 2013, 07:31:31 PM
Is the player going through the wall as well? For the enemy a box should work but you cannot scale the box, only the collider.


There is also this video on AI and not making it stop hitting the walls. I went through the same trouble but eventually I just deleted all the colliders I had and added a cube as a child, zero'd the cube to center my enemy and it worked.

I'm not so sure what you mean by the resident evil example but if you mean that it stops following you with vision? If so the video series provides that as well!
Title: Re: Enemy is catching me through the wall
Post by: lucaderiu on May 03, 2013, 12:10:23 PM
Thank you sebaslive, i missed that videos form BadSeedGames, now i'll watch them all. My "enemy" rig is quite different but the AI result is the same (and now it doesn't pass throught walls) :)
Thanks again!