OptionalcastIf 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?: Vec3 | [number, number, number]The position of the object in local space
OptionalreceiveIf the object should receive shadows
Optionalrotation?: Vec3 | [number, number, number]The rotation of the object in local space
Optionalscale?: Vec3 | numberThe 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