Quantcast
Channel: Questions in topic: "addforce"
Viewing all articles
Browse latest Browse all 1264

2D Indiana Jones rock not rolling.

$
0
0
Its a simple cylinder that is on its side in 2D and it moves to the right until the end of time. It also rotates. But unfortunately, it doesn't. The rotation works fine, its the movemement thats weird. It worked to begin with, but when i edited the map a little, it now moves very very slowly to the right instead of at a high speed. I have tried using invokerepeating for both the rotation and the movement, but i had the same problem with that. with addforce, it actually worked.. for a while. InvokeRepeating("Rotate",0,.05); function Update() { rigidbody.AddForce(Vector3.right * 10); } function Rotate() { transform.Rotate(0, -6, 0 * Time.deltaTime); }

Viewing all articles
Browse latest Browse all 1264

Trending Articles



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