Type alias ObjectOptions

ObjectOptions: {
    material?: Material;
    name?: string;
    position?: Vec3;
    rotation?: Vec3;
    scale?: Vec3;
    texture?: Texture;
}

Options to create an object. Used by ObjectUtils.createPrimitive

Type declaration

  • Optional material?: Material

    Optional: The material to apply to the object

  • Optional name?: string
  • Optional position?: Vec3
  • Optional rotation?: Vec3

    euler

  • Optional scale?: Vec3
  • Optional texture?: Texture

    Optional: The texture will applied to the material's main texture slot e.g. material.map if any is passed in