stranger-games
Member
I have top down character setup with look in move direction as the following.
It works great except when there is a wall or another collider in the back of the character and the character tries to move toward the wall.
Once the character collides with the wall it doesn't rotate towards it.
I want it to rotate and look at the wall even if it can't pass through, how can I achieve that?
As you can see in the following video I am trying to move toward the collider. The player starts rotating but as soon as it touches the wall it stops rotating and doesn't look in the direction of the controller.
Even if there is no built in way to do it, please guide me to where in the code can I try to modify to achieve that.
It's important for the project.
It works great except when there is a wall or another collider in the back of the character and the character tries to move toward the wall.
Once the character collides with the wall it doesn't rotate towards it.
I want it to rotate and look at the wall even if it can't pass through, how can I achieve that?
As you can see in the following video I am trying to move toward the collider. The player starts rotating but as soon as it touches the wall it stops rotating and doesn't look in the direction of the controller.
Screen Recording 2020-07-10 at 1.01.51 PM.mov
drive.google.com
Even if there is no built in way to do it, please guide me to where in the code can I try to modify to achieve that.
It's important for the project.