<a-cone>

Note: This documentation is for the old 0.2.0 version of A-Frame. Check out the documentation for the current 0.5.0 version

The cone primitive creates a cone shape. It is an entity that prescribes the geometry with its geometric primitive set to cone.

Example

<a-assets>
<img id="texture" src="texture.png">
</a-assets>
<!-- Basic cone. -->
<a-cone color="tomato" radius-bottom="2" radius-top="0.5"></a-cone>
<!-- Textured box. -->
<a-cone src="#texture"></a-cone>

Attributes

Note that the cone primitive inherits common mesh attributes.

AttributeComponent MappingDefault Value
heightgeometry.height1.5
open-endedgeometry.openEndedfalse
radius-bottomgeometry.radiusBottom0.75
radius-topgeometry.radiusTop0.75
segments-heightgeometry.segmentsHeight1
segments-radialgeometry.segmentsRadial36
theta-lengthgeometry.thetaLength360
theta-startgeometry.thetaStart0