Drag back object and release to apply force.
So at first I had a problem with clicking to drag an object with a mouse but it got solved at this link https://answers.unrealengine.com/questions/327389/click-to-drag-actor-not-working-correctly.html
I have run into another problem though when I click and drag the object back and release the mouse button it won't apply force to the object. What I am trying to achieve is an angry birds style of shooting. I asked it in the other question but was told to start up a new question and also was told that some of this would help
"I recommend setting an initial point variable, and an end point variable once touch is released. Then call a new custom event and use those variables. It will make your blueprints MUCH easier to follow and you'll be glad you did as you progress.
I think you want to use Get Length Vector 3 but I don't have my engine up in front of me. Then you can add a multiplier onto the result."
The only thing is I am still new and learning blueprints and don't really know where to start with this. Below is the blueprint I have so far.
asked Nov 04 '15 at 11:20 PM in Blueprint Scripting
The splits are done by using "Add Reroute Node" when dragging out your pin.
A vector clamp works by setting a minimum and maximum to the vectors length.
Each axis of the vector will be multiplied by a value which will maintain the vectors direction but keep the length within the specified range in Clamp Vector Size.
Vector lengths increase as the values within vectors do. In your case a longer length would mean a larger launching effect.
You could also clamp each float from the vector and rebuild the vector but I don't recommend this because it would create weird trajectories.
Follow this question
Once you sign in you will be able to subscribe for any updates here