How do I compare the rotation of an actor with the vector of a ray?
I'm trying to determine whether a line between two actors is equal to the rotation of one of those actors. The idea is to be able to be able to tell if certain actors are aligned with each other.
I've tried to do it with a ray trace, but it doesn't really matter if the ray hits the actors, just that I can have the line to pull information from. If a ray trace is the best way, any suggestions on how to make it work? If there's a better way, I'm all ears.
asked Dec 01 '16 at 06:43 PM in Blueprint Scripting
As long as you want the second object to be aligned along the first's X, Y, or Z axis, you can for example find the Up Vector of your first object and then find the normalized line between the two objects. If they are equal or roughly equal, they should be aligned.
answered Dec 01 '16 at 06:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here