I hope I was able to explain.
How do I calculate if my character is in an angle? Player1 in the image is in an acceptable position. Player2’s location is not accepted.
I hope I was able to explain.
How do I calculate if my character is in an angle? Player1 in the image is in an acceptable position. Player2’s location is not accepted.
Hey captain TvZs!
Somebody else had this question and it’s a pretty great solution!
Thank you, but I’m having a little trouble understanding this. Can you sample for me?
I would create a geometric body used as a collision component for MyActor
with your desired shape in any 3D software, hide the mesh, enable overlapping events and then trigger an action when the overlap occurrs.
The linked thread seems to have everything you need, but here’s a more visual example - perhaps that helps:
Essentially, you want to use dot product
and, optionally, convert it to angle. There are more examples linked under the above post.
I’ve thought about it, but the degree I’m stating is constantly changing.