My character keep "standing" on foliages, grasses for example/

Hi there, lately I have been running into some issues with collision i think. If you know why please drop me an answer. Thank you!

I changed from first person to third person, and when I was in first person mode, everything worked fine. But when I changed to third person, my character keeps standing on grass, and I can’t figure out why. I have my grass mesh collision turned off, using PCG, and turned PCG collision off as well.


As you can see, my character is standing on grass, despite all that I have mentioned above. Please help!

Hello there @VNBlidion!

From what can be seen in your screenshots, and considering your setup, this is most likely a capsule positioning conflict, being triggered during the first person to third person change.

You can confirm if this is the case by running “show collision” command, which will draw all collisions outlines in game, and show you the player capsule’s status. It will also show if the grass’ collision is inactive or not.

Now, in order to resolve the problem, open your character’s blueprint, and check its capsule component. Then, adjust its Z offset in a way that the model’s feet are alligned with the bottom of the capsule.

1 Like

I doubt that’s a valid answer since his Leg IK is up on top of a grass bunch and that directly governs character height within a capsule based on math.

Either the leg IK is whack, and needs to be told not to trace on visibility but just on colliders.

Or the grass mesh is whack and needs to not have any collision or be assigned the proper collision settings.

You probably do want the grass to have collision if you plan on using it somehow. So you just put it in the correct collision channel.

On the other hand, tracing visibility on IK is just bad practice…

1 Like

Hi there brs-sebascova, Thanks for your response!

I have put the command you said while running in the game, and it looks like chaos.

There is one thing I did notice is that the capsule of the player is slightly below the mesh. And when I check my character’s BP, the capsule looks fine to me, the mesh just fits inside it.

When I tried to adjust the Z axis of the character mesh a bit lower than the capsule, the problem still persisted. How should I fix this?

Again, thanks for your attention! I’m new to the engine and trying my best to learning it!

P/S: Oh and one more thing, when I turn off PCG, which is grass, the character works fine, he stands on the landscape as planned.

Again you need to look into what the leg IK is tracing on or just disable that feature.

1 Like

Im sorry Im new to animation stuffs in UE, can you explain further on how can I know what the leg LK is tracing on and how to disable it. Thanks you!

I found the solution, the PCG itself is generating foliage WITH collision in it, despite the collision setting in mesh is turned off and PCG collision is turned off. So I need to go to the PCG graph editor, at the “static mesh spawner” node, turn off collision in “Mesh selector” section or change the collision behavior for that mesh I’m spawning using PCG and save it, that’s all!

2 Likes