detach
Detaches an entity from the object.
Syntax
object.detach(entity);
Parameters
Name | Type | Description |
---|---|---|
entity | EntityManager | Entity to attach. |
Example
const box1 = engine.objects.create('box');
const box2 = engine.objects.create('box', {position: [0, 1, 0]});
box1.attach(box2);
// then later
box1.detach(box2);
Available on: Client Server