Hi! I've been trying to make my player character be able to propel off walls, by calculating a reflected vector3 from a raycast and moving the controller in that direction; here's my state:
This works fine, however, every time i change the collider that the player is bouncing off of, it seems to use the information in the previous "bounce", which leads to a bad result; I have no idea why this is happening.
I'm attaching a video of the problem; note that everytime i change collider (go to a different wall), it seems like it's using the previous jump's coordinates.
https://giant.gfycat.com/ImpassionedLividHoki.webmAny help would be appreciated! Am i doing something wrong?