Function state.set_touching_ground not working
If I call state:set_touching_ground(false)
to allow jumping over holes, the hero falls on the hole immediately when the ground position is over hole ground. This is wrong.
Remarks:
If I set state:set_touching_ground(true)
, the hero falls too (as expected) but not immediately when the ground position touches hole ground (which is the usual behavior for the free state).
If I call state:set_affected_by_ground("hole", false)
, then the hero can jump over holes.
To reproduce this bug, write:
local state = sol.state.create()
state:set_touching_ground(false)
and start that state on the hero. Then try to walk over hole grounds.