- Home /
This post has been wikified, any user with enough reputation can edit it.
eulerangle not work with joystick
hi now i am working on my game the idea about rotate the gun in different ways with move it i had two control options first is accelemerator in the script of accelemerator i wrote this
unction Update () {
transform.eulerAngles.z = 0;
}
that is make gun rotate well without make it looks stupid
but when i try to write it in joystick script it doesn't work
so how to use
unction Update () {
transform.eulerAngles.z = 0;
with joystick ?
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Reloading the scene causes ads to reload. Is this ok ? 3 Answers
Simple Timer 2 Answers
Stuck on this! Please help me out. 1 Answer
how to make high quality textures with low size of downlaod 1 Answer