Ib Green 7c9f422335 Capability management (#171)
* State and capability management

* Transform feedback fixes (updates to @gnavvy tf-feedback example_

* Documentation and Demo improvements
2017-05-29 08:49:24 -07:00

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.