My little group of developers and I are working on a side-scrolling game in UE4, and we started trying to build this feature. I’ve built and attempted it, and ran into an issue I simply cannot figure out how to fix.
Our goal is to give the player a list of objects to place, spawning the object when chosen, moving the object around with the mouse, and then placing it if they’re able to. I started simply with moving the actor using the mouse, and already ran into an issue that is wrecking my head. The implementation seems to work at times, but randomly the object will shift away from the mouse to odd locations while you are moving it.
I started testing this with the Blueprint Side Scroller template, adding a player controller to the GameMode to use it’s mouse interaction. I have also made a project from scratch, and have the same problems.
For the moveable actor, I copied the Blueprint on MI_Sphere from the Blueprint Mouse Interaction content example, where moving the objects works fine. The only changes I made to the blueprint were to remove the touch controls, and material changes, to reduce it down to the bare functionality I need.
This is the Blueprint from the content example that works just fine. I have played around relentlessly with the settings, especially collision, and the Trace Channel, to no progress.
Can anyone give me an idea of what is going wrong? Or, give me a better idea of how to get started setting this feature up? I really cannot tell what the issue is.