louis030195 / Evol

Multiplayer hero defense game
MIT License
5 stars 1 forks source link

fix our rotate #1

Closed rom1504 closed 5 years ago

rom1504 commented 5 years ago

we are using transform.Rotate wrong see https://docs.unity3d.com/ScriptReference/Transform.Rotate.html and https://github.com/Unity-Technologies/ml-agents/search?q=transform.Rotate&unscoped_q=transform.Rotate

first parameter is the axis, the size of the vector representing it doesn't matter the second parameter is the number of degree to turn