Please Help Me - Moving Objects with Widgets

I have a couple widgets I’m using to simulate hands. They’re moved around the screen using the gamepad thumbsticks:

The player uses the hands to grab objects from the world:

While the object is being held, it stays under and follows the hand widget:

Everything works great, just about.

Here is a video of my blueprint in action: Video - YouTube

The first thirty seconds is executing the nodes as shown in my pictures. From there onward the right hand widget shows execution with ‘New Z Location’ unpinned from ‘Set Target Location’.

I need held items to only move on the X and Y axis, while still staying under the widget’s screen position at a set Z level. Held objects move like inside a sphere, they arc. And when tossed curve towards the center. When the object is restricted to X, Y, movement, it doesn’t keep up with the hand.

I simply can’t figure out how to pick up the object and move it over the bin to drop it in! I’ve been searching online for solutions but have given up. I’m either not asking the right questions to get the right search results. I’m a beginner, so this is a learning process. I figure the solution has got to be simple, maybe even staring me in the face. I just don’t have the knowledge, yet.

Hope this post makes enough sense. If more information is needed, please just let me know.

Any help would be so very appreciated. Thank you.

My problem:

Hi , its very cool what you have done,
I think you almost done !

I whould say that when you convert “screen location to world space”
you get literally the plane of the view, here in purple.
So you will never reach the box !

I would add a linetrace using the camera direction and the converted screen location
to find the place where the red line touch the level ,
and then place the objects to that coords + 0 ,0,500 , so to be able to drop it on the box

immagine

Hey, sorry for the late reply! Very busy.

Thank you so much for taking your time to reply. I didn’t get to trying it though. I had started trying something else as a solution. It didn’t work, but through it I did find a solution. Satisfying solution, if not perfect.

Before, the held item followed the object, while being held. But as you know, I couldn’t move it where it needed to go, and the object didn’t stay with the widget. Now, when an object is picked up, instead of following the widget location, it switches the widget to follow the object location, and the object is moved instead.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.