Group - Verge3D User Manual - Soft8Soft
Description: Learn how to use Group in your interactive 3D apps made with Verge3D

Object3D →

# Group

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

Do not confuse these groups (object types) with group names stored in the Object3D.groupNames property.

## Code Example

`const geometry = new v3d.BoxGeometry(1, 1, 1); const material = new v3d.MeshBasicMaterial({color: 0x00ff00}); const cubeA = new v3d.Mesh(geometry, material); cubeA.position.set(100, 100, 0); const cubeB = new v3d.Mesh(geometry, material); cubeB.position.set(-100, -100, 0); // create a group and add the two cubes // these cubes can now be rotated / scaled etc as a group const group = new v3d.Group(); group.add(cubeA); group.add(cubeB); app.scene.add(group);`

## Constructor

### Group()

## Properties

See the base Object3D class for inherited properties.

### # .isGroup : Boolean

Read-only flag to check if a given object is of type Group.

### # .type : String

A string `"Group"`. This should not be changed.

## Methods

See the base Object3D class for inherited methods.

## Source

For more info on how to obtain the source code of this module see this page.