Relative Content

Tag Archive for unity-game-enginegame-development

How can I move my pistol on y axis when moving my camera

(https://i.sstatic.net/v8KZUz9o.png)
First I removed the empty game object of camera but as it was not working, I tried making it the child of pistol. When I am moving the camera on X axis the gun is moving with it but not happening on y axis.

How can I move my pistol on y axis when moving my camera

(https://i.sstatic.net/v8KZUz9o.png)
First I removed the empty game object of camera but as it was not working, I tried making it the child of pistol. When I am moving the camera on X axis the gun is moving with it but not happening on y axis.

Why my asset keep disapearing once i press play?

I have an asset of a chest on my project. I copied to use it throughout the map with different items. But when I test the game, the copies are not where I put them. In fact it came to my attention, when I interact with the chest, it’s like all the chests are in the same position.

Picking up clones of guns in unity 3d

Hi can someone help me? I want to pick guns which are spawning randomly as I used instantiate but they are not working as they are spawning and are being referred as clones. How can I pick clones of the guns?

Understanding Different Behaviors in Unity Rotation Calculation

I have recently begun learning Unity and encountered a perplexing issue. I implemented two different scripts to control the rotation of a GameObject, specifically a ball. In the first script, I calculated the rotation by multiplying by Time.deltaTime in a separate line. This caused the ball to move from left to right and vice versa. In the second script, I calculated the rotation by multiplying by Time.deltaTime within a single line, which resulted in the ball moving forwards and backwards.