Characters going through stairs/slopes - not climbing them

Hi all,

I have trawled the documentation and example projects. Searched google, bing and youtube and the answer is probably really simple and straightforward but I cannot find it.

I have two planes(tried cubes as well) at different heights with a cube turned into a slope access (also used probuilder to build stairs) to connect the two levels. On the upper level there is a target object sphere that just sits there. On the lower level is a capsule with the seeker script and AIpath script attached with the target transform field set to the cube target gameobject.

I am creating a layered grid graph.

When the scene is run the capsule heads towards the target but instead of traversing the slope passes through it and comes to rest directly under the target gameobject.

I have set up the layered grid graph to cover the full area. Character height set to 2 and max climb set to 1. Collision testing is set to Obstacles (for when they are there) and height testing is set to Ground. The planes and connection cube are all on ground layer and name tag set to ground as well.

I have tried adding/removing colliders, rigidbodies, character controllers, changing tags, changing layers, changing collider types and changing height and character size settings. I have tried normal grid graphs as well as the layered. Even created new projects in case there was a bug.

After days wasted I give in and need advice.

I can see this is a great bit of software Aron and am sure I will grow to really like it but the documentation needs to be more comprehensive for beginners like me. I am on my own and learning every aspect of game dev that I can to make my game. With juggling family, work and this I would greatly appreciate every bit of help.

Thanks

After days of trying every possible combination of things I could think of I have just found that if the character controller center is moved to be above the ground then the unit will no longer fall through the floor and thus does also traverse the ground.

For others in the same situation just check that the center of the controller is adjusted so the bottom is higher than the ground.

I didn’t know that rage and relief could be experienced in such union until I discovered this :slight_smile:

Aron - Please address docs for beginners. If the above is the correct fix for my problem then something so fundamental should be on one of the docs first pages on how to set up scenes. Thanks.

Sorry for the late answer.

Yeah, the docs could be improved in that area.
Problem with beginner mistakes is that there are so many things that could go wrong so it is hard to write about them all :stuck_out_tongue: but I will try my best.

Hi Aron,

Thanks for the reply. Sorry for the late reply but I have not had chance to log on sooner. I think just a list of simple scene build principles that carry across all graph types would be a great help.

Thanks again

Doc