Quantcast
Channel: Latest Questions by simplyRubbish
Viewing all articles
Browse latest Browse all 50

Bullet capsule always standing upright

$
0
0

I am Instantiating a Capsule GameObject that will act as a bullet and it always is standing up even if I change the rotation.

Here is the code I'm using to create it:

GameObject clone = GameObject.Instantiate(prefab, transform.position, transform.rotation) as GameObject; and for the prefab's script:

rigidbody.AddForce(transform.forward * 856); I tried changing the rotation on the object but nothing seems to work. Any suggestions? Again, I'm not trying to have it rotate all the time after it's created, I just need it to be pointing forward instead of standing upright.

Thank you.


Viewing all articles
Browse latest Browse all 50

Trending Articles



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