I have a character that has a constant speed, and I want to be able to change its direction with swipe gestures, The exact same mechanism implemented here.
I managed to do that for movement only, without taking into account the rotation, but I want to create this mechanism in such way that the rigidbody will have constant force in the transform.forward
direction, and the Y rotation will change according to the swipe gestures, so the character will always move forward in local space, but will face towards different direction according to the assigned rotation.
I couldn't find a proper way of finding the desired rotation by the swipe direction.
How can I achieve this logic?