i started with the first game course by unreal , i made the map and made the materials and made the player controller and the bot character and connected and and made the playercontroller controll the bot to follow the mouse, but the problem im having is that i wanted to be oriented to the location it’s moving and after i let go i wanted it stay there
but it resets the orientation and it looks forward after moving , i want it to maintain the rotation it was when i was moving it
I see that you are using a bool and event tick instead of connecting you input action directly to Add Movement Input. Is there a specific reason why you are doing that?
Any additional specifics you provide may go a long way in solving your problem!
Any additional specifics you provide may go a long way in solving your problem!
If that’s not it, we’ll need more info, indeed. Is there anything else that could affect the rotation of the character?
almost* - this is irrelevant here but may become an inconsistency at some point:
- you trace from the centre of the character towards the ground, at an angle that changes based on the distance; your character will run with varying speeds:
- ideally, we’d trace with a zOffset so we get a direction that is more true to where we want to go
This may be OK-ish for movement in most cases, but if you were to fire a projectile or use the trace to detect what’s ahead of the pawn, it would not work well.