@Cestarian
My friend, the nodes you use here…convert mouse location to world space or get hit result under cursor by channel…both of these return the location of the clicked location. I need the instant position when moving with the mouse, and it needs to be such that I can set a sphere collision right under the cursor. Even if you use the nodes you use with the event tick, it only returns the position when it was clicked. Or if there is another application method, I don’t know, I’m open to any help
the trace start on the trace hit result, or the world location on the convert mouse location to world space is the cursor’s actual world location, not what you clicked on, the grab distance thing is unrelated (i just check how far away the clicked object was from the cursor when it was clicked so it stays at that distance)
I had these screenshots lying around, they had all the code you seemed to need.
Is this what you wanna do?
Dude, I think I explained clearly what I wanted to do on the subject.
No, not at all - it returns the projected world space location - whether you Tick it every frame or trigger it on click is up to you.
If you want to trace manually, do so. if you want something more elaborate, look into Line Plane Intersection
.
Dude, I think I explained clearly what I wanted to do on the subject.
Why these 2 nodes then? Not suitable here.
Did you mean to:
As in the subject?
Just when I click on the left button, it sets the sphere collision under the mouse cursor. All I want is for it to do this in the same way without clicking. I did it as you showed in the image, but it didn’t work, did I miss something?
Run this in a clean, blank project - see if it works the way you need first. You might be doing or have set up something extra we cannot see - hard to guess. Some template settings perhaps?
At a glance, it seems like an issue with either a Pawn or Mouse Capture but I can’t tell what’s up with this. It’s not a script (that we see) issue.
How’s this on your end?
You may want to have the green option:
The behaviour looks like the red one.
Yes, it is completely related to the project settings. Creating a project from scratch with the first codes you posted solved the problem.
Thank you very much to everyone who commented and tried to help.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.