Hello, I have basic pick up object system. I can grab object and move him. But i want option when player scroll mouse and object will come closer or further from player. Thanks
Do you use Blueprints or C++? Can you share your current implementation?
1.Setup MouseWheel inputs.
Look under Project Settings > Input > Bindings >
You can set MouseWheel Up and MouseWheel Down as ActionMappings or use AxisMappings for MouseWheel Axis.
https://docs.unrealengine.com/en-US/Gameplay/HowTo/SetUpInput/Blueprints/index.html
2.Use these InputEvents to first find out in which direction the actor has to move.
Get it’s world location and the players world location.
Use Get Unit Direction Vector to get the direction to the player
3.How to actually move it (there are different ways) depends on your pick up object system, but you did not show us how it works.
Cheers!
Blueprint. First 2 screenshots are pick up system. 3. should be system im asking for but it doesnt work for some reason…