[PUN2] Grabbing a ball with Transform & Rigidbody Views

Options

Hey,

I have a simple scene with just a basketball, which has both Transform View and Rigidbody View components on it. Players can grab that ball. What the grabbing logic does is disable the physics on the ball (by making it kinematic) and parent the ball to the player who grabbed it; now its position is determined by that parent's, not by physics. Physics are re-enabled the moment the player throws the ball.

The Rigidbody View works fine until a player grabs the ball. Everything is going fine on the grabber's side, but the ball acts very weird on the other player's; it's teleporting around in a jittery fashion, until the ball is thrown at which point it teleports to where the ball actually is and resumes proper operation.

Any idea of where the problem might be coming from? Assistance would be greatly appreciated.

Cheers.

Answers