Hi. I'm trying to convert the mouse position to the game world position. I'm making a Tank game so i want the cannnon to rotate on
Y using the
Vector3 position of the mouse, but when i set the
X and
Y position to the Action
"Screen To World Point", my variable
Vector3 is always
(0.0, 0.0, 0.0).
Am i doing something wrong?
Attached images "FSM_MousePos1.jpg" and "FSM_MousePos2.jpg" to show the process. I created 3 variables:
- Vector3 MousePointPos
- float MouseXPos
- float MouseYPos
those are visible on the Action!
Best regards,
PJRM.