new Object3DSync(configopt)
The Object3DSync behavior syncs an object's transform and data
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
Properties
|
Members
(readonly) dataRef :Firebase
Firebase reference for the 'data' child location, can be used to store data related to this object.
(readonly) isMine :boolean
True if this object is currently owned by this client, false otherwise.
Methods
takeOwnership()
Take ownership of this object. The client that instantiates an object owns it, afterwards changes in ownership must be managed by the app. Manual modifications to the Firebase ref's will not obey ownership status.