【问题标题】:What is the code and what attributes are necessary to create a pyramid in A-frame VR world?在 A 帧 VR 世界中创建金字塔需要什么代码和哪些属性?
【发布时间】:2019-08-20 04:02:31
【问题描述】:

我需要 A-frame 世界中的金字塔。如何使用“圆锥”功能获得金字塔的形状?

    <a-pyramid color="green" height="20" width="30" depth="10" position="0 1 -3"></a-pyramid>


    <a-pyramid color="green" height="20" width="30" depth="10" position="0 1 -3"></a-pyramid>

什么都没有。

【问题讨论】:

    标签: aframe


    【解决方案1】:

    docs - 左下角有一个可用原语列表。


    您可以从以下方法开始:

    • 结合triangles:

      <a-triangle vertex-a="1 0 0" vertex-b="-1 0 0" vertex-c=" 0 1 -0.5"></a-triangle>
      ... and so on
      

    小提琴here.

    • 或在this 问题中创建自定义几何。

    【讨论】:

      猜你喜欢
      • 2023-02-19
      • 2014-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多