- Home /
My camera is not working, nor are my bullets?
So I asked my friend for some help on my game, and gave a me a few scripts and allows me to make bullets emit out of my gun, but now the bullets are staying still, and my camera is rotating in circle, and it's on Mouse Look Y. And it's my Instantiate.
Instantiate(bullet, transform.position, transform.rotation);
Is there anyway to fix this? Thanks. Also is there a script for the gun bobbing with the "person"?
That code will do exactly what you said it's doing. It will put an object in space. Unless there are any lines of code moving the position of the bullet or applying a force to a rigidbody on the bullet, those objects will not go anywhere.
As for the camera, you haven't included any code for the camera so I'm afraid I have no idea why it rotates in a circle.
I'm sure there is a script out there somewhere for making an object move with headbob. Perhaps on the Unify Wiki?
Your answer
Follow this Question
Related Questions
rigid body working wierd 1 Answer
Changing code every once in a while causes an internal compiler error 0 Answers
How can I reduce speed of an object, the more that object gets close to target? 1 Answer
How to use a controller button and keyboard key? 0 Answers
Making a character jump and crouch using a Joystick 1 Answer