A want to find a Vector3 that is offset from an actor's position relative to the actor's angle. So, maybe 16 units to the front and 32 units to the right.
I figured out how to find the x offset (forwards/back), but I don't know about the right-left offset maths.
Code: Select all
int offsetX = 16;//forward-backward
int offsetY = 32;//right-left
Vector3 offsetPos = (pos.x + cos(angle) * offsetX, pos.y + sin(angle) * offsetX, pos.z);

