I’ve just moved from using
moveWithCollisions so that I could merge my world into a single mesh, but one fixed issue brought another - my character now climbs stuff, and can get under the floor! …, which is kinda cool but unwanted.
Is there a way to prevent any movement on the Y axis?
Things I tried:
- Adding an invisible ceiling exactly at the top of the character. That did not work, the mesh was able to force itself through the ceiling somehow
- Wrap each mech in a container that has the same height as the character - sorta works, can’t merge into the final mesh as bullets would get stuck mid air in an invisible wall, so means more meshes.
- Gravity - does not work for me, as I use a static height for everything (there’s no vertical aiming)
So basically, I want to move my mesh with collisions but prevent it to climb and get underneath things.