Hi all,
I'm trying to setup a wall-jump FSM but it's not working as expected, specifically, the collision detection does not function as expected. What I'm trying to achieve is the player cube FSM to be in either 'On right wall' or 'On left wall' state depending on the wall it's touching (determined based off of the tag of the object the player cube is colliding with). Instead, the FSM is almost always in the 'Collided' state. On initial jump, the cube jumps to the right wall (the jump portion of the FSM works fine), but when the cube hits the wall, the state goes back to 'Collided' and stays there. There are times when the cube will actually get to 'On right wall' state, but I have to "catch it" in that state, it flips in and out very fast and seemingly at random.
Even on initial scene start, the cube falls onto the ground, which is untagged, but stays in the 'collided' state instead of going to the 'start' state as I think it should.
I've uploaded an image of how the FSM is setup, as well as an image describing the scene setup (as far as tagging is concerned), and two more images which display how the 'collided' state is setup and illustrate that the cube is constantly in 'collided' state.
All help is appreciated.