#Implementing Camera Relative Player Movement
11 messages · Page 1 of 1 (latest)
this method on Vector2https://docs.godotengine.org/en/stable/classes/class_vector2.html#class-vector2-method-rotated
A 2D vector using floating point coordinates. Description: A 2-element structure that can be used to represent 2D coordinates or any other pair of numeric values. It uses floating-point coordinates...
will rotate the vector by some angle amount in radians
try experiment with it on your input_dir with the camera’s angle
adding the camera angle directly may not be sufficient, like resulting angle maybe off by some amount of n * pi. if youre lucky you may not need to do anything else.
if you do not want to calculate anything and just want it to work then try fiddling with the offset amount by some pi (me all the time)