i have a rootmotion non player pawn that updates its location based on the animation data (which moves away from (0,0,0) a lot. using move(rootdelta) or setlocation(prior location + delta) works fine for moving tha pawn.
however now i'd like to be able to rotate the pawn at the start of a new anim so it travels in another direction using the same animation data.
if i use setrotation(new yaw), the location data stays the same even if the pawn is facing new direction.
can anyone suggest a way to rotate a rootmotion pawn and have the location data move relative to the new heading?
i tried setbonedirection() and setbonerotation() on the root bone Bip01. one had no apparent effect though the logged yaw did change, one rotated the pawn on multiple axis, not just vertically, so it kept flipping around to face all over the place each new anim (not sure if this is euler angle problem?).
any suggestions really appreciated
however now i'd like to be able to rotate the pawn at the start of a new anim so it travels in another direction using the same animation data.
if i use setrotation(new yaw), the location data stays the same even if the pawn is facing new direction.
can anyone suggest a way to rotate a rootmotion pawn and have the location data move relative to the new heading?
i tried setbonedirection() and setbonerotation() on the root bone Bip01. one had no apparent effect though the logged yaw did change, one rotated the pawn on multiple axis, not just vertically, so it kept flipping around to face all over the place each new anim (not sure if this is euler angle problem?).
any suggestions really appreciated