I’m not sure if it’s RigidBody3D or 2D, but you shouldn’t use RayCast for ground detection. Because it’s a line, not a shape. There’s a chance the player get stuck on an edge, but on_ground won’t be 1. Raycasts are awesome, but this is flawed.
on_ground
1
True. But it works for some, including myself.
That’s great :D