Hello,
I’m working on a sidescroller and I had the idea of using a mesh that I would test against raycast so that the scene could curve or the character could move through the Z axis by simply following an invisible mesh.
My idea is to use a raycast perpendicular to the plane of the character’s movement. However, in order to raycast test to get the position the character should snap to, the object needs a collider, but then it would interfere with rigidbody collisions. My first thought was to use layers but that does not seem to affect physics. Any suggestions how would I go about this?
Thank you!