Rigidbody Constraints not sending over NetworkView

I have a working multi-player project that is based on the default use of Networkviews and RPCs. Players can manipulate objects in game by picking them up and moving them around, spinning them, sizing them and that all works great. But I have tried to add the ability to freeze the object in mid air… which I’ve done easily… but the other players don’t have the object freeze in their games, it just falls to the ground. So the freeze works for the server and the clients doing the freezing of the object, but it is never sent over the Networkview (that is attached to the rigidbody of all objects that can be maniipulated) to any of the other players or server.

Visual: Player hold a rock over it’s head in game and uses the freeze button to make it stay there…the Rigidbody Constraints are all frozen on that players screen but on everyone elses screen it falls to the ground.

So the question is… does a network view send the Rigidbody contraints… and if not how should I go about sending that info via RPC?

After some messing around, it turns out that you have to send the Constraints by RPC… Hope this helps other in the future… here is a code snippet…


function lockinplace(){
	this.rigidbody.constraints = RigidbodyConstraints.FreezePositionX |RigidbodyConstraints.FreezePositionY |RigidbodyConstraints.FreezePositionZ ;