Hello. Recently ive tried to create a locking and camera movement system very similar to Nier Automata but im stuck at the very end i thought you guys can help me.
Basically ive created a locking system which target the closest enemy to you. my camera has two other different locations except from default location which based on angle between camera to player and camera to enemy will adjust itself on either left or right (like nier automata) but my issue is coming from my movement.Im going to provide videos so you guys understand and can help me:
1- I rotate my control rotation towards the enemy(final stage of lock on)
My movement is basically i use the MoveLeft and MoveForward to AddMovementInput from the forward vector of Yaw rotation of Control Rotation which bring us to the video. i want the character to maintain the direction he is going and not keep rotation around the enemy but i dont know how. Something similar to nier automata.
2-My movement script using two events
For the video : first i test locking .then at the end i just keep holding the W to show the rotation around enemy which is the issue
This one in nier it has two good points that im after: first when i engage and i keep holding W it will keep going to the direction and doesnt spin and when i press A or D when still holding the W it will rotate a bit toward the enemy. how can yo get the same effect?Sorry for the long post but i would be grateful if someone can help me.