i want to be able draw a sphere trace in 8 directions around the player. the direction should be considered from the camera and not the players rotation. i dont know how to frame my question correctly. but the third person characters rotation should not affect the directions. i have a macro which gives 8 execution pins (front, back, front left, front right … etc) if its front i want to draw a sphere trace starting from the players location and ending at some point maybe 200 points forward . if its right i want to draw a sphere trace starting from the players location and ending at some point right. the characters rotation should not matter directions should be based on camera. hope fully i was able to ask the question correctly. Thank you
You can use the “Make Vector” node, set it to (200, 0, 0) and add it on top of the player’s location using the “Get Actor Location” node, and then plug it into the end pin of your sphere trace node for that front one you mentioned. You can also do the same manually for each direction OR you can just rotate this vector using the “Rotate Vector” node and into the rotation pin, insert the desired value dynamically by using a rot type variable.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.