CarrotKutay / Colosseum

Experimental Game Development
1 stars 0 forks source link

Bug/Wrong Behavior: Turning Player #17

Closed CarrotKutay closed 4 years ago

CarrotKutay commented 4 years ago

Turning the player towards input

There seems to be an issue with turning the payer correctly: see #11 #10

Problem

The player is turning only in the direction the input is pointing. What is desired however, is a turn towards the direction the input is pointing in relation to the position of the player itself

Solution

It might be that currently to turn the player we are setting the forward vector to the turn-input directly. What might solve the issue is to get a directional vector from the player to the turn-input received and set the forward vector accordingly.