Hey guys, it's been a while since i've asked for help on here, but I'm working on changing up animations and I have a question about angles.
Right now I have a basic change to make the 3rd person cam look more natural, right now I'm using
And passing that into the _y of the player entity angle to make the player model look in the direction you move, combined with jump and swim anims it really helps.
I was wondering if there's a way to detect the direction you are moving relative to the player? v_right moves things based on the player camera, but AFAIK there's no way to check if the player is moving in the direction of v_right or -v_right correct? At least I couldn't figure out a way to test the velocity against it. The problem with using velocity directly is that left and right are always a different value based on the player's facing.
Basically I want to see what direction the player is moving and play unique animations accordingly.
Right now I have a basic change to make the 3rd person cam look more natural, right now I'm using
Code:
vector pang; pang = vectoangles(self.velocity);
I was wondering if there's a way to detect the direction you are moving relative to the player? v_right moves things based on the player camera, but AFAIK there's no way to check if the player is moving in the direction of v_right or -v_right correct? At least I couldn't figure out a way to test the velocity against it. The problem with using velocity directly is that left and right are always a different value based on the player's facing.
Basically I want to see what direction the player is moving and play unique animations accordingly.
Comment