Is it possible to move the Arm or Hand bone on click, to then always reset the cursor position to middle of the screen before and after movement?
I read small posts about this, but nothind definite in how to approach this.
Anyone that can help me understand how it works? How to drive bone movement with mouse.
Is it by using IK bonesetup, if so, how?
getnamo
(getnamo)
December 13, 2015, 4:02pm
2
do you mean that you wish to move the mouse somewhere, then click to move and arm/bone to that location?
No I mean that when I click I activate the mouse, so I can control the arm with the mouse. Independent of animation.
So if I click and drag the mouse o the lower left corner or right corner it will move in a corresponding swing motion according to my mouse input.
getnamo
(getnamo)
December 13, 2015, 6:04pm
4
So I was curious how to put this in myself. Here’s what I got
http://i.imgur.com/Ud43MCs.gif
Here is the approach I took using third person template as a starting point.
Accumulate Mouse Input in a duplicate third person character I call MouseIKCharacter. Do not add camera rotation when you’re moving your hand.
http://i.imgur.com/Q177bNU.png
Use the left mouse click to activate the mouse hand IK, when we release we return to normal behavior.
http://i.imgur.com/zXfnGxA.png
Duplicate ThirdPersonAnimation blueprint, add the following graph to copy the state variables from our character into our animation blueprint. Note that I would normally abstract this using an interface so we can avoid a cast to a specific character type.
http://i.imgur.com/1oLtH8v.png
In the animation graph, use a fabrik node where you take the local mouse movement input and multiply it by a scaling factor so you can tweak the output
http://i.imgur.com/3lRLZJR.png
where FABRIK details are given as
http://i.imgur.com/omO6Yis.png
Final project available at GitHub - getnamo/UE4-MouseIKThirdPerson: Simple Unreal Engine third person template project with mouse click left arm movement.
Thank you so much! It was indeed what I was thinking of when asking the question!
RO0T7
(RO0T7)
October 11, 2020, 9:39am
6
Hey, this is very late buy how do you create the Mouse movement x and Mouse movement y Variables , and what variable type is it
getnamo
(getnamo)
October 12, 2020, 7:23pm
7
Mouse Movement X/Y are both floats and member variables of MouseIKCharacter. See GitHub - getnamo/UE4-MouseIKThirdPerson: Simple Unreal Engine third person template project with mouse click left arm movement. for full example, you can explore the blueprints there.