jellix79 / aframe-pipe-component

Cylinder with inner and outer radius

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aframe-pipe-component

Creates a cylinder with an inner and outer radius.

Size, orientation and default-values are same as an .

API

Property Description Default Value
outerRadius The outer radius of the pipe. 1
innerRadius Inner radius of the pipe. If the value is 0, the pipe is a cylinder with no rings but caps at the ends. 0.9
height The height of the pipe. 1
segments Radial segments 64

Browser

Install and use by directly including the browser files:

<head>
  <title>My A-Frame Scene</title>
  <script src="https://aframe.io/releases/0.4.0/aframe.min.js"></script>
  <script src="https://github.com/jellix79/aframe-pipe-component/dist/pipe.js"></script>
</head>

<body>
  <a-scene>
    <a-entity pipe=""></a-entity>
  </a-scene>
</body>

About

Cylinder with inner and outer radius

License:MIT License


Languages

Language:JavaScript 100.0%