Aiming on any actor using only upper body (Aim Offset)

How can I implement in Top Down Game, that any pawn, or my character, aiming on any actor using only upper body (Aim Offset), best will be if I moving around of any selected actor and my character still aiming on it using Aim offset and Blend spaces

Thanks!

You’d need a 2D blendspace. One dimension will respond to horizontal aiming (the torso of the character twisting), and one to vertical (the spine or shoulders bending). You’d need to create 8 animation poses for aiming left, right, up, down, left and up, left and down, right and up, and right and down. Place these on the edges of a square in the blendspace. Next, you’d need to calculate the angle between the player’s forward direction ( (1, 0, 0) in local space of the character’s actor) and the direction they should be aiming, and feed these angles to the blendspace.

Thank you for quick response

But question was exactly about BP implantation, Bleed space and Aim offset already prepared. If I using: Find Look at Rotation ==> Set Actor Rotation, in that case my character rotating but not using aim offset.

Well, using SetActorRotation will definitely not give you the result you want. It rotates the entire actor (components and all) to face a new direction, so it’d turn your entire mesh in place. You’ll want to use that only for the direction your character is running. You’ll have to store an aim target for your character, and extract the angles from it like below:

I haven’t really worked with blendspaces, so I don’t know how you’d pass in the values, but it should be pretty straight-forward. I also imagine you’d need to sanitize the values before passing them to the blendspace, checking for angles greater than your aim animations, stuff like that.

Get the location of what you want to look at and the " SET FOCUS " node will use the aim offset to point the upper body at the target location . "CLEAR FOCUS " to reset