How to stop people going through walls

I was trying to create a person that follows you but he always went through walls. Is there any way to make it so he doesn’t go through walls to get to you?

1 Like

Hi @Krust,

There are a couple of ways to achieve this, the simplest is to use Physics on the person who follows you, and the objects. Here’s a remixable example:

Hope this helps! Let me know if you have any further questions about this. If this solves your problem, please mark this post as the Solution.

Many thanks,
Geoff @ TechLeap

i tried it with clones and it does not work

how to do make it so that your zombie cant fall over? always stays up? or when he falls down he gets back up???

1 Like

I was wondering that too

It should work with clones, but you must add Physics to clone in the code.

You can ensure the Zombie doesn’t fall over by:

  1. Making sure Zombie does not have Precise Collision enabled
  2. Using restrict rotation on xy (off for z) Physics CoBlock

Falling down and getting back up again is an interesting proposition:

  1. How could we “sense” if the Zombie has fallen over?
  2. What actually happens to the object’s rotation and position when it falls over?
  3. How is that different from it being upright?

Follow these questions and all the answers will reveal themselves to you… :mage:‍♂

Geoff @ TechLeap

I tried it and while it lowered the chance of falling over, it still couldn’t get up a ramp

Have you got an example CoSpace you can share, @Krust ? It’s an interesting AI challenge.

Geoff @ TechLeap