Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Wrong position when starting the game. Need help

Discussion in 'Physics' started by N1clasZ, May 4, 2023.

?

How to fix?

  1. Set right pos

    0 vote(s)
    0.0%
  2. Fix current pos

    0 vote(s)
    0.0%
Multiple votes are allowed.
  1. N1clasZ

    N1clasZ

    Joined:
    Mar 21, 2021
    Posts:
    1
    Hi, community! I've got the problem with positioning of my player. When I started game, my player offsets a bit and the main problem - his hand too. Before start: z pos = 0.25 and after -0.002. How can I fix this problem?
     

    Attached Files:

  2. arkano22

    arkano22

    Joined:
    Sep 20, 2012
    Posts:
    1,605
    Seems like your character is somewhat sunk into the floor (a bit hard to tell for sure from your screenshots). Collision detection will move it to a valid position as soon as the game starts.

    Just move the player to a valid position yourself, one that doesn’t intersect the floor.