Closed Taflaxx closed 1 year ago
It would be a good idea to not trigger the interaction unless the player is not moving, i.e. they are hitting against the door/wall collider (maybe add a 0.5s timer too or something? not sure if that would help or not). Some of these interactables have a very big usable range so it's possible that the player will be snapped to them.
The player now only interacts when the velocity is 0 and the forced move direction is 1. For example if the NN wants to take a ladder up it has to press up (forced move direction y=1). When it hits the ladder/wall the velocity drops to 0 and triggers ladder.Use().
I couldn't properly test this with the NN because it just didn't walk to tasks (just jitters back and forth). I guess i'm missing training data for it to work correctly.
This pull request needs to be tested with a properly trained neural network @Vedal987
closes #66