Class MeshCollider

java.lang.Object
net.risingworld.api.collider.Collider
net.risingworld.api.collider.MeshCollider

public class MeshCollider extends Collider
Represents a mesh-accurate collision shape
  • Constructor Details

    • MeshCollider

      public MeshCollider()
      Creates a new mesh collider which uses the default mesh of the object.
    • MeshCollider

      public MeshCollider(MeshAsset mesh)
      Creates a new mesh collider using the provided mesh.
      Parameters:
      mesh - the mesh you want to use as collider.
    • MeshCollider

      public MeshCollider(ModelAsset mesh)
      Creates a new mesh collider using the provided mesh.
      Parameters:
      mesh - the mesh you want to use as collider.