Quantcast
Channel: Answers by "diegzumillo"
Viewing all articles
Browse latest Browse all 87

Answer by diegzumillo

$
0
0
Do you want it to be instantaneous or continuously moving? Either way there is a number of ways to do it. Instantaneous you can do simply like this: if(Input.GetButtonDown("Jump")){ transform.Rotate(Vector3(90,0,0)); } If you want to make a continuous movement it will depend on what kind of movement you want. edit: of course, "jump" and "vector3(90,0,0)" are just illustrative values. Use whatever you want.

Viewing all articles
Browse latest Browse all 87

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>