Hi, I’ve been trying and failing for a few weeks to make a blueprint for an object that would always look at the mouse cursor.
I want to use this to simulate the backdrop of a website for a school subject. I only need to showcase the interactivity between the mouse and the objects for it to be good.
It’s a bit like this one :
https://forums.unrealengine.com/t/solved-how-to-make-a-mesh-react-to-the-cursor
/463447/12
but i can’t find the SET node, nor can i find the Move Ball node.
This is the problem i’ve had with every tutorial i found, i can’t seem to find all the nodes for it.
So, how can i make the mesh face always my cursor and why are some nodes not accessible by name ?
And I still have the issue of not being albe to get the SET and move my object
I also don’t understand which node it is right after the break vector node in this BP that i’m trying to reproduce
And since i don’t want my object to be restrained in how much it can rotate to face the mouse i don’t know which elements to take out
(I’m really lost honestly buy I’m getting to it)
It’s a > 120
The SET is just what setting a variable looks like…
OOOooooh Ok thank you very much, I’ll try that tonight and update the post according to how I manage
Ok so update, i got the rotator viriable, but i don’t know how to get the move component to get my faces to move
It’s maybe not a bad idea to explain what I’m trying to do. I want to simulate an interactive website background that would be covered in people’s faces that always look at the cursor and react to it’s clicks.
I just noticed that you’re the same person that showed in another post the technique I’m trying to implement. Do you think it’s the right way to go ?
Thank you sm already
Ah, no, then this is not what you want.
Are the faces 3D or 2D?
3D: You still need to deproject the mouse click to world location, then use ‘look at rotation’ in the heads.
2D: You need to get the clicked screen position, and use ‘look at rotation’ but only in 2 axes.
It’s not particularly straightforward.
I want to have sprites floating in a 3D space; so I think it’s the first one.
I want the website to be between the camera and the face on a plane and the faces to make a backdrop behind it, that I think I know how to do,
I also think I can figure out how to project the mouse, but my issue is that I don’t know how to make the faces look at the cursor “dynamicly”
But the masks don’t look at the right place to make it look like they’re looking aat the cursor, when my mouse is at the center of the screen it works just fine but the closer it is to the edges and the more it offsets. I marked with a dot the place where my cursor was in the second screenshot so you can see the offest.
Thank you so very much already
I’m also trying to make the faces keep the right orientation, so they would look more like they look up instead of rotating completely.
maybe i should make the head not able to turn more than 90]