I want to implement steerign control like this game,
youtube.com/watch
User rotate the steering and car moves in that direction, however I am not able to replicate it as given in game. Any idea on how to rotate car towards the angle of steering?
Develop games in your browser. Powerful, performant & highly capable.
I would think of the steering wheel as an ascetic and simply focus on two sides of the screen. If touch is < than viewport.Width(0)/2 then rotate left. If touch is > than viewport.Width(0)/2 then rotate right.