/docs/#api/en/core/Object3D"><code class="notranslate"
              translate="no">Object3D</code></a>对象下。</p>
        <pre class="prettyprint showlinemods notranslate lang-js" translate="no">
function makeTree(x, z) {
  const root = new THREE.Object3D();
  const trunk = new THREE.Mesh(trunkGeometry, trunkMaterial);
  trunk.position.y = trunkHeight / 2;
  root.add(trunk);

  const top = new THREE.Mesh(topGeometry, topMaterial);
  top.position.y = trunkHeight + topHeight / 2;
  root.add(top);

  roo