Constructor
new Object3DSync(configopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
Properties
|
Extends
Members
type :string
The string name of this class. This is used for THREE.Object3D#getBehaviorByType.
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.
Events
ownershipgained
Fired when a synced object's ownership is transferred to the local client.
ownershiplost
Fired when a synced object's ownership is transferred to someone else.