- Home /
Duplicate Question
I need help instantiateing a bullet
Hello I already know the script to were you Instantiate the GameObject But what I need help on is when I spawn the bullet it fly's right and not the way my gun is pointing why is that could some one help me I know Java Script in unity so please help me.
There a bizillion scripts on this list concerning firing projectiles/bullets. How to implement will depend on a number of different factors that you have not specified. Please do a Google search for any combination of 'unity3d', 'bullet', 'projectile', 'spawn point', 'instantiate', 'aim', 'LookAt'. Play with some scripts. If you get stuck, post back a new question with the code and your specific situation.
It would be helpful to post what code you have, so we know just why your projectile is flying off in the wrong direction. For all we can tell, it could be anything from a single bad vector calculation to your model's "forward" vector being screwy.
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Unity Editor Function Animation 0 Answers
Helpppp - AnimationState.layer ?????? -1 Answers
How to add colliders to Tron Like Trail 0 Answers
RayCast Shooting not working 0 Answers