The question is answered, right answer was accepted
Bullet isn't rotating,Bullet has another rotation
Hello, I'm trying to make a game where a player (an object) is shooting bullets, but there is something wrong. The bullet is not rotating. The direction of shooting is good but it is not rotating. Please, I need some help. Thanks you so much!
Here is a picture with the prefab:
GameObject bullet = Instantiate(bulletType, transform.position,transform.rotation);
Rigidbody bulletGb = bullet.GetComponent<Rigidbody>();
bulletGb.AddForce(transform.forward * bulletSpeed);
Destroy(bullet, 3f);
Answer by CommanderPaladin · Mar 17, 2021 at 06:47 PM
It was because the Bullet model had some parts that were with Rotation 90, not 0. All the sub-objects need to be with 0 rotation on all axes.
Follow this Question
Related Questions
Rotation not working properly when ,Script rotation not working when instansiating. 0 Answers
Im having an issue when Instantiate Prefab with specific rotation 2 Answers
How to make a gameobject rotate coninously on key press? 1 Answer
problem of rotate joint of hands 0 Answers
Simple Instantiation Rotation 0 Answers