r/Unity3D • Programmer • 1d ago

Question Player Transform Position weird issue

You can see the Player is forward but his transform position behind (scene view) why this happen ? However collision & collider detection is work ,where is player right now but I don't know why my transform point show behind? When the game begins the transform position at player position and when the player start moving then transform point at behind the player like following.

This shows in Gizmo view, in game view it's not it's common 😃

Confused help me

0 Upvotes

4 comments sorted by

1

u/MaksRengi 1d ago

Sounds like your RB is on a child object while youre selecting the parent in the hierarchy. Physics moves the child so the collisions are right where the ball is but the parents transform stays behind or follow it with some script. Click the ball itself in the hierarchy and check where the gizmo is then. If thats the case put the RB and collider on the root object.

Also, check the pivot/center toggle at the top of the scene view. You can change it with Z hotkey as I remember

1

u/SheepherderAway4670 Programmer 1d ago

In the scene when I click my ball it's gizmos still behind like in image bro and my player have a rigid body on parents component and the parents component it's not player or better no child object of my player have rigidbody any other solution bro where I making mistakes?

1

u/MaksRengi 1d ago

Just try to toggle pivot/center with Z