ST Object Sync
Syncs an object's position and rotation from its owner to everyone. Use it for things scripts move: vehicles,
platforms, balls. Add it with Add Component → StageTime → ST Object Sync. (In VRChat terms: VRCObjectSync.)
- Without a Rigidbody, the owner moves the object (from a script) and everyone else follows smoothly.
- With a Rigidbody that is not kinematic, only the owner simulates its physics and everyone else follows. The object falls, rolls and collides the same for everyone, and keeps moving when ownership changes.
Take ownership with Networking.SetOwner(Networking.LocalPlayer, gameObject) before moving it. A seat with
Take Controls does this for the Object Sync above it when a player sits (see ST Seat). With nobody
moving it, the last owner keeps simulating, so a ball keeps rolling and a car parked on a slope rolls for everyone.
From scripts (any player can call these; they run on the owner's device):
STObjectSync sync = GetComponent<STObjectSync>();
sync.Respawn(); // back to where it started, stopped
sync.SetKinematic(true); // stop simulating physics, for everyone
sync.SetGravity(false); // turn gravity off, for everyone
The Drivable car example is a physics car with an Object Sync, and a button that respawns it.
How it works
The object gets a Fusion NetworkRigidbody3D (with a Rigidbody) or NetworkTransform (without one). On the owner,
Unity simulates the Rigidbody with interpolation on; on other devices the Rigidbody is kinematic and follows the
owner's interpolated position.