Capítulo 3 de 859

Chapter 3: Group

Core Idea

This is almost identical to an Object3D. Its purpose is to make working with groups of objects syntactically clearer.

Key Concepts

  • isGroup : boolean (readonly): This flag can be used for type testing.

Code Examples

// Create a group and add the two cubes.
// These cubes can now be rotated / scaled etc as a group.
const group = new THREE.Group();
group.add( meshA );
group.add( meshB );
scene.add( group );
  • What it demonstrates: Typical usage of Group.

Reference Tables

Constructor

Signature
new Group()

Properties

PropertyDescription
.isGroup : boolean (readonly)This flag can be used for type testing.

Key Takeaways

  1. Group extends: EventDispatcher → Object3D
  2. Most relevant properties: isGroup.

Connects To