- Home /
Can a character collider be affected by a rigidbody collider?
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 Collider 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 Collider 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 Collider? 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!
How are you moving the wall? That is much more important than it sounds.