mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
* State and capability management * Transform feedback fixes (updates to @gnavvy tf-feedback example_ * Documentation and Demo improvements
754 B
754 B
Group
Holds a list of Object3ds. Since Group is a subclass of Object3D you can place groups inside groups and create hierarchical scene graphs.
Usage
Add a moon and a box models to the group.
// Add objects to the group
group.add(moon, box);
Add a moon and a box models to the group. Then remove them.
// Add objects to the group
group.add(moon, box);
// Remove the moon
group.remove(moon);
Methods
add
Add an Object3D object to the Group.
group.add(o[, ...]);
A variable argument list of Object3D instances.
Examples:
remove
Removes an Object3D object from the Group.
group.remove(model);
- model - (object) The model to be removed.