So I’m trying to make a roll-a-ball game , I attached like a turret gun on the sides of the sphere but Idk how to stop it from rotating with the sphere… any idea how to stop this
-Thanks!
Create a Parent Game Object that has the ball and the turrets as a child. Translate this gameobject to move the balls position while rotating the ball inside to give a rolling effect. This will keep the turrets moving with the ball without rotating.
Or you can create a script that copies the position of the ball transform and adjusts the turrets accordingly every frame. In this scenario, both the turrets and the ball will be separate gameobjects.
Let me know if you need more clarification. Cheers !