Determine the right AimOffset Yaw and Pitch so that the weapon's muzzle forward vector focus a target precisely
i have a question for animators and math experts.
Here is a picture of a Test Blendspace2D:
What i wanna achieve is:
I have a target and i wanna aim this target. So i have to put in the right Yaw(X) and Pitch(Y) Input. But in the end the muzzle or the whole weapon's forward vector shall precisely aiming the target, on point.
So i have to include a lot of variables like the weapon's x offset, the heights of the individual aiming anims and so on.
I just wanna ask if anybody has deep experiences and already solved this. Any tips and tricks and smart ideas are also welcome.
Thanks in advance
asked Mar 06 '17 at 02:11 PM in Blueprint Scripting
I'm not an expert, but this may help.
Normally, the Aimoffset is not intended for precise aiming. It helps you to create a visually acceptable aiming, but in the end many people just trace a line between the target and the weapon muzzle (it's just a socket positioned just at the tip of your gun) and use this trace independently of how well your character, and weapon, is setted up towards the target.
This is why sometimes you see in games characters aiming slightly wrong but you hit the target anyway.
If you really want this kind of accuracy, this can be painful depending on the context. I had to do this for a game and it took me almost a month to make it perfect. It all depends on the type of character you have, the type of weapon, the camera positioning etc. In your case, as I can see by the picture, it would suffice to use the aimoffset to behave the character and you could use inverse kinematics to stay your hands on your weapon while you rotate its muzzle precisely towards the target.
Although it may seem easy talking this way, normally it is not, as it involves a lot of tests and re-checks and each case is different.
answered Mar 15 '17 at 07:43 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here