#charactercontroller.is grounded with layers
1 messages · Page 1 of 1 (latest)
You demonstrated how to declare a LayerMask variable.
What you didn't show - despite it being the core of the question - is how to check what you collided with.
1 messages · Page 1 of 1 (latest)
You could pass a Layer to your character controller (like this public LayerMask Ground;) and check if the bottom of your character collides with the layer
You demonstrated how to declare a LayerMask variable.
What you didn't show - despite it being the core of the question - is how to check what you collided with.