Child object in different position than parent

Options
Hi everyone, I'm making a racing game multiplayer where you can shoot other players and I have a weird issue , when the car moves, the weapon (that is a child of the car) moves a little forward than the car itself and when the car stops the weapon returns to its right place. This happens only for the other players' views and not on mine. It's like the car is slower and the weapon is faster.

I hope someone can help me because I really can't find a solution.

Best Answer

Answers

  • sid_juego
    Options
    Are you attaching a photontranformview to the weapons too?
  • slope
    Options
    @sid_juego No, the weapon has a photonview attached.
  • sid_juego
    Options
    @slope : Try removing the photon view from the weapon and check again.
  • slope
    Options
    @sid_juego I added the PhotonTransformView and PhotonView observes it, now the weapon is in the right place but it doesn't rotate, it follows the car's rotation and not the joystick rotation. Note that the weapon shoots in the right direction but it stays in the wrong rotation.
  • slope
    slope
    Answer ✓
    Options
    Nevermind I resolved it.