Search Unity

Object with Rigid Body and Colliders moves when played.

Discussion in 'Animation' started by Waka-Takaki, May 23, 2014.

  1. Waka-Takaki

    Waka-Takaki

    Joined:
    Jan 19, 2014
    Posts:
    27
    Hi, I'm making a 2.5D game which uses 2D sprites within a 3D environment.

    I have two sprites each with a Rigid Body and a few colliders (These are 3D colliders) and this works fine in most ways. One object is fine, but the other, as soon as the play button is pressed, Logging the positions, it quickly moves and settles at around
    X = 7.5E-11, Z = -2.5E-05. But the inspector still shows that the positions of the object are X = 0, Z = 0.

    The other object with the exact same colliders and rigid body and stays put at X = 0, Z = 0, these both have the same settings within the components. They are essentially identical aside from the sprite itself and animator.

    Is this to do with them occupying the same location?