- Home /
Transform.Position.Y is slowly decreasing but the player is not moving.
I have my player object sitting on terrain at y=120. i have put a debug.log statement that prints out the transform.position.y every update. They player is not moving up or down, merely staying put on the terrain, but the transform.position.y is slowly decreasing over time. I am trying to use this positioning to shoot bullets, but after a few seconds the bullets are spawning underground. Even in the inspector for the player's position is staying put at 120. What could be causing this, how can I fix it?
Could it be that the object you are actually moving is the gun muzzle ins$$anonymous$$d of the player?
Your answer
![](https://koobas.hobune.stream/wayback/20220613200705im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Translate.transform problems (collision/Rigibody) 0 Answers
Turning off rigidbody without turning the entire object inactive? 1 Answer
How would I make it so an animation will play, but stop when it hits a collider? 0 Answers
How can I move a 2D GameObject left/right relative to its forward direction? 1 Answer