i am lost .... i am trying to replicate the controls of soulstone survivors. wasd movement with dash and lookat rotation..... help :D wasd works, dash works but my controls always relate to the forward vector of the playercontroller and then wasd gets messed up when try to rotate the character towards the mouse
apologies for the late reply, youtube has finally decided to show me ALL comments and not hide them from me did you manage to resolve this issue? for rotation of character I use getHitResultUnderCursorByChannel on the visibility channel, break the hit result to get the location, then FindLookatRotation using player location as start and hit location as target. Set actor rotation using the Z only from the result (i set the actor rotation for the whole Pawn, not just the mesh) as for the dash as long as you rotate the whole pawn (or playercharacter) then the get forward vector should work? hope it helps (though given how long ago this was I hope you have solved it already :D )
i am lost .... i am trying to replicate the controls of soulstone survivors. wasd movement with dash and lookat rotation..... help :D wasd works, dash works but my controls always relate to the forward vector of the playercontroller and then wasd gets messed up when try to rotate the character towards the mouse
apologies for the late reply, youtube has finally decided to show me ALL comments and not hide them from me
did you manage to resolve this issue?
for rotation of character I use getHitResultUnderCursorByChannel on the visibility channel, break the hit result to get the location, then
FindLookatRotation using player location as start and hit location as target. Set actor rotation using the Z only from the result
(i set the actor rotation for the whole Pawn, not just the mesh)
as for the dash as long as you rotate the whole pawn (or playercharacter) then the get forward vector should work?
hope it helps
(though given how long ago this was I hope you have solved it already :D )