detach
Detaches an entity from the player.
Syntax
player.detach(entity);
Parameters
Name | Type | Description |
---|---|---|
entity | EntityManager | Entity to attach. |
Example
const box = engine.objects.create('box');
player.attach(box, {
bone: 'head',
});
// then later
player.detach(box);
Available on: Client Server