Class SimpleModel

java.lang.Object
dev.engine_room.flywheel.lib.model.SimpleModel
All Implemented Interfaces:
Model

public class SimpleModel extends Object implements Model
  • Constructor Details

  • Method Details

    • meshes

      public List<Model.ConfiguredMesh> meshes()
      Description copied from interface: Model
      Get a list of all meshes in this model.

      The contents of the returned list will be queried, but never modified.

      Meshes will be rendered in the order they appear in this list. See InstancerProvider.instancer(InstanceType, Model, int) for a complete explanation

      Specified by:
      meshes in interface Model
      Returns:
      A list of meshes.
    • boundingSphere

      public org.joml.Vector4fc boundingSphere()
      Description copied from interface: Model
      Get a vec4 representing this model's bounding sphere in the format (x, y, z, radius). It should encompass all meshes' bounding spheres.
      Specified by:
      boundingSphere in interface Model
      Returns:
      A vec4 view.