for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/** @formatter:off
* ******************************************************************
* Created by Marko Kungla on Jul 8, 2016 - 3:16:33 AM
* Contact [email protected]
* @copyright 2016 Marko Kungla - https://github.com/mkungla
* @license The MIT License (MIT)
*
* @category AframeVR
* @package aframe-php
* Lang PHP (php version >= 7)
* Encoding UTF-8
* File Cone.php
* Code format PSR-2 and 12
* @link https://github.com/mkungla/aframe-php
* @issues https://github.com/mkungla/aframe-php/issues
* ********************************************************************
* Contributors:
* @author Marko Kungla <[email protected]>
* Comments:
* @formatter:on */
namespace AframeVR\Extras\Primitives;
use \AframeVR\Core\Entity;
use \AframeVR\Interfaces\EntityInterface;
final class Cone extends Entity implements EntityInterface
{
/**
* <a-cone>
* The cone primitive creates a cone shape. It is an entity that prescribes the geometry with its geometric
* primitive set to cone.
* @return void
*/
public function reset()
parent::reset();
$this->component('Geometry')->primitive('cone');
$this->component('Geometry')->height(1);
$this->component('Geometry')->openEnded(false);
$this->component('Geometry')->radiusBottom(1);
$this->component('Geometry')->radiusTop(.8);
$this->component('Geometry')->segmentsHeight(18);
$this->component('Geometry')->segmentsRadial(36);
$this->component('Geometry')->thetaLength(360);
$this->component('Geometry')->thetaStart(0);
}