Character Collider to be affected by Moving Wall?

Hi!

I’ve been using Unity for about one week now, very interesting. I started with Will Goldstone’s Unity Game Development Essentials and have moved into some of my own experiments.

Question for the veterans:

How would you cause a FPS character to be affected by a moving wall?

With the Character Controller moving, it collides with the wall correctly. If the character is stationary, and the wall moves into the character, it passes right through.

In reading the manual, it seems that the answer is a Kinematic Rigibody Collider. I assumed this meant that the Character Controller had the IsKinematic attribute, but it doesn’t.

Do I need to build a a FPS character that uses a standard Rigidbody and Collider rather than the Character Controller?
I started this off by using the FPS scripts that come as standard assets. So I suppose I could try to repurpose one of these physics based FPS scripts…

Thanks in advance for your advice!

Have you tried adding a boxcollider to your player?

Just make sure it’s not the full length of the character otherwise it’ll rotate when you look up and down and impede your movement.

Just tried it and the wall still passes through. Ill attach some screen grabs of my setup in case I’m missing something really obvious.

Any thoughts?
Thanks for the help!

http://files.me.com/crutchre/rn0zk8

http://files.me.com/crutchre/x61zo4

No idea’ what’s going on. I set it up the same as you and it works for me.

459781–16077–$Test.zip (50.1 KB)

Did you find some solution?

Thanks!