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?
Try using DeprojectScreenToWorld node to make your character look at the location of your cursor instead of it’s trace hit location.
Like this:
2 Likes
there is nothing in the world where you try to hit with the mouse. It will not find anything
1 Like
Hi, I couldn’t reproduce this
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 ).
1 Like
thank you so much
something strange happens, at the bottom of the screen it works fine, when it’s above it doesn’t return any value
Try increasing the TraceLength.
1 Like