Transform - xkp/Doc GitHub Wiki

Overview

This class is used as a positional helper, it is an object3d that has no geometry at all. You can use it to control the position/rotation/scale of its children by modifying his.

Usage

<transform id="container">
   <cube id="cube1" ...>
   <cube id="cube2" ...>
</transform>

by doing:

container.position.x += 100;

both cubes will move.

⚠️ **GitHub.com Fallback** ⚠️