CS559 3D World Framework Code
Simple Example Objects - they don't do much, but for convenience they provide wrappers around THREE objects
- Source:
Classes
Type Definitions
CubeProperties
we pass a set of properties to a cube to allow for flexible parameters
Type:
- object
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
material |
THREE.Material |
<optional> |
||
color |
string | number |
<optional> |
||
x |
number |
<optional> |
0 | |
y |
number |
<optional> |
0 | |
z |
number |
<optional> |
0 | |
size |
number |
<optional> |
1 | |
widthSegments |
number |
<optional> |
8 | only for Sphere, Cone, Cylinder |
heightSegments |
number |
<optional> |
6 | only for Sphere |
- Source: