Shooting functions - Line Tracing

Strafe movement



Create Blend Space animation, choose UE5 mannequin, name as StrafeBlendSpace
image.png
Name and change horziontal axis and vertical axis, and tick snap to grid
image.png

Add the animstartpack to project, choose those 5 Idle Rifle anim (idle, joggle foward, backward, left, right) and retarget it form ue4 to ue5 character
image.png
image.png

Drag the rifle idle anim at all 5 direction points when speed is 0
image.png
Put forward anim in centre, left, right on direction -/+90, and backward on both -/+180 direction
image.png

Create a Anim BP, name as StarfeAnimBP
Drag the Blendspace in graph, promote variables speed and direction
image.png
To event graph:
image.png


Go to 3rd person BP
Viewport, choose Mesh component
change Anim Class:
image.png

To let character always look forward to the camera
in character movement component,
tick use controller dersired rotation; while untick orient rotation to movement
image.png
To fix snappy movement,
Open strafe blend space
add weight speed to 30
image.png
increase smoothing time to 0.35 on both horizontal and vertical axis:
image.png

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.