OptionalcastShadow?: booleanIf the object should cast shadows
Optionalcolor?: ColorRepresentationThe color of the object. This color will only be used if no material is provided
Optionalmaterial?: MaterialThe material to apply to the object
Optionalname?: stringThe name of the object
Optionalparent?: Object3DThe parent object to add the created object to
Optionalposition?: Partial<Vec3> | [number, number, number]The position of the object in local space
OptionalreceiveShadow?: booleanIf the object should receive shadows
Optionalrotation?: Partial<Vec3> | [number, number, number]The rotation of the object in local space
Optionalscale?: Partial<Vec3> | number | [number, number, number]The scale of the object in local space
Optionaltexture?: TextureThe texture will applied to the material's main texture slot e.g. material.map if any is passed in
Options to create an object. Used by ObjectUtils.createPrimitive