playMaker

Author Topic: Enemy is catching me through the wall [SOLVED]  (Read 1319 times)

lucaderiu

  • Playmaker Newbie
  • *
  • Posts: 29
    • View Profile
    • PlaySys
Enemy is catching me through the wall [SOLVED]
« on: May 01, 2013, 03: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
« Last Edit: May 04, 2013, 02:31:43 AM by lucaderiu »
-----------------------------------------------------
https://madewith.unity.com/profiles/playsys
-----------------------------------------------------

sebaslive

  • Hero Member
  • *****
  • Posts: 557
    • View Profile
    • Frame Tale Studios
Re: Enemy is catching me through the wall
« Reply #1 on: May 01, 2013, 04: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!
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

lucaderiu

  • Playmaker Newbie
  • *
  • Posts: 29
    • View Profile
    • PlaySys
Re: Enemy is catching me through the wall
« Reply #2 on: May 03, 2013, 09:10:23 AM »
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!
-----------------------------------------------------
https://madewith.unity.com/profiles/playsys
-----------------------------------------------------