Paper
Paper copied to clipboard
Add LocalCoordinates API
Just in case you wonder, I tested it and everything is fine (the second commit is because I forgot that a Vec2 representing yaw and pitch is x=pitch and y=yaw, not like the debug screen F3 that shows (yaw, pitch)
, I inverted them and it's ok !)
I think that this should wait until https://github.com/PaperMC/Paper/pull/7639 As then we will just be able to make a new Position object which represents an offset like this.
With the position PR merged, this could probably be looked at again.