I’m looking to create something that uses “aiming” variables from a object that can change rotation,
so if the target object is straight in front of the center of the base object, it would read “0,0”
While if the target is to the left it would read "-45,0 " (and 45,0 for the other side)
Or if the target is higher than the center aim, it would read “0,45” (and 0,-45 for lower)
Though if the base were to rotate away from the target, the values would also change to reflect the offset angle.
I tried using the “find look at” node though this only gets world space offsets, not local space.
when i rotate the objects it wont reflect this additional rotation offset
Heres a diagram of the 2D problem, eventually i will have to put in two axis:
So rotating the base should change variables, though rotating the target should not.
To make matters worse the “base” is an externally referenced object (actor variable) while the target is the object itself.
Anybody got an idea how to rig this up in BP?
I created this thinking it would work,
Though when i rotate the target and base at the same times, i see variables changing, though their relative offset is not changing, the values should remain the same.