Skip to content

Documentation / scene / BoxCreationOptions

Interface: BoxCreationOptions ​

Defined in: libs/scene/src/shapes/box.ts:9

Creation options for box shape

Extends ​

Properties ​

size? ​

optional size?: number

Defined in: libs/scene/src/shapes/box.ts:11

Size of all axises, default 1


sizeX? ​

optional sizeX?: number

Defined in: libs/scene/src/shapes/box.ts:13

Size of axis x, default 1


sizeY? ​

optional sizeY?: number

Defined in: libs/scene/src/shapes/box.ts:15

Size of axis y, default 1


sizeZ? ​

optional sizeZ?: number

Defined in: libs/scene/src/shapes/box.ts:17

Size of axis z, default 1


anchor? ​

optional anchor?: number

Defined in: libs/scene/src/shapes/box.ts:19

Anchor


anchorX? ​

optional anchorX?: number

Defined in: libs/scene/src/shapes/box.ts:21

Anchor X


anchorY? ​

optional anchorY?: number

Defined in: libs/scene/src/shapes/box.ts:23

Anchor Y


anchorZ? ​

optional anchorZ?: number

Defined in: libs/scene/src/shapes/box.ts:25

Anchor Z


needNormal? ​

optional needNormal?: boolean

Defined in: libs/scene/src/shapes/shape.ts:12

true if we need to calculate normals for the shape

Inherited from ​

ShapeCreationOptions.needNormal


needTangent? ​

optional needTangent?: boolean

Defined in: libs/scene/src/shapes/shape.ts:14

true if we need to calculate tangents for the shape

Inherited from ​

ShapeCreationOptions.needTangent


needUV? ​

optional needUV?: boolean

Defined in: libs/scene/src/shapes/shape.ts:16

true if we need to calculate texture coordinates for the shape

Inherited from ​

ShapeCreationOptions.needUV


transform? ​

optional transform?: Matrix4x4

Defined in: libs/scene/src/shapes/shape.ts:18

Transform matrix for the shape

Inherited from ​

ShapeCreationOptions.transform

Released under the MIT License.