Object3d - xkp/Doc GitHub Wiki
Overview
The object3d object represent the base class for all 3d shapes, it is non instantiable.
Properties
-
material: it will contain either a string representing the object's material or an array of strings if the object takes many materials.
-
color: a string containing the color an object will take, it supports integer, hexadecimal or language expressions .
-
opacity a value between 0 and 1 describing the mesh's transparency (1: fully opaque, 0: fully transparent).
-
overdraw: boolean, whether the mesh will be overdrawn or not.
-
double_sided: boolean, whether the mesh will be visible on both sides of every face.
-
position: a vector3d (x, y, z), contains the mesh's position.
-
rotation: the rotation of the object relative to its pivot.
-
scale: a vector3d representing the scale ([1, 1, 1] is the unit vector).