lukaoooo
(Lucas de Oliveira Bastos)
July 25, 2022, 6:52am
1
hello, I managed to make my character rotate with the location of the mouse, it works well, it only works if it is hitting an object, when it doesn’t hit the rotation to, how could I rotate the character perfectly even when it doesn’t hit?
NessaChen
(NessaChen)
July 25, 2022, 7:47am
2
Try using DeprojectScreenToWorld node to make your character look at the location of your cursor instead of it’s trace hit location.
Like this:
there is nothing in the world where you try to hit with the mouse. It will not find anything
lukaoooo
(Lucas de Oliveira Bastos)
July 26, 2022, 2:25am
5
Hi, I couldn’t reproduce this
pezzott1
(pezzott1)
July 26, 2022, 2:29am
6
It’s a Math Expression node .
You can create it by right clicking and searching for it. Press F2 to type ( as if renaming the node ).
lukaoooo
(Lucas de Oliveira Bastos)
July 26, 2022, 3:34am
8
something strange happens, at the bottom of the screen it works fine, when it’s above it doesn’t return any value
pezzott1
(pezzott1)
July 26, 2022, 3:36am
9
Try increasing the TraceLength.