![]() ![]() How do i fix this problem?Īlso, can anyone give me a scrip suitable for a gun that shoots using raycast? REALLY needed help, thanks. Even if im aming at the same spot, sometimes it shoots upward, sometimes it shoots downwards, sometimes from the centre, sometimes from below, even from on top. Into my camera, but when i press shoot, it shoots the bullet all around. No matter how I position the bulletspawn in the scene it always ends up in the wrong place in-game (not at. and the screenshot from in-game is where the bullets end up when I press Fire (L Mousebutton). The selected Game Object in the Scene is the bullet spawn point. But as the bullet rises, the force of gravity falls off. Im having trouble spawning bullets at the right position in my game. ![]() Give the cloned object an initial velocity along the currentĬlone.velocity = transform.TransformDirection (Vector3.forward * speed) The tiny force of attraction between all those zillions of quanta sums up to our 'weight' that. Instantiate the projectile at the position and rotation of this transformĬlone = Instantiate(projectile, transform.position, transform.rotation) I encountered a problem, spent all day long searching answers for it, still no hope. I'm working on a FPS game, and have only a little knowledge about scripting and animations. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |