Klasse HullCollider

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

public class HullCollider extends Collider
Represents a hull collider, i.e a rough representation of a mesh collider
  • Verschachtelte Klassen - Übersicht

    Von Klasse geerbte verschachtelte Klassen/Schnittstellen net.risingworld.api.collider.Collider

    Collider.Type
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Creates a new hull collider which uses the default mesh of the object for the hull representation.
    HullCollider(boolean isTrigger)
    Creates a new hull collider which uses the default mesh of the object for the hull representation.
    Creates a new hull collider using the provided mesh.
    HullCollider(MeshAsset mesh, boolean isTrigger)
    Creates a new hull collider using the provided mesh.
    Creates a new hull collider using the provided mesh.
    HullCollider(ModelAsset mesh, boolean isTrigger)
    Creates a new hull collider using the provided mesh.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    boolean
    Gets whether or not this is a "ghost collider".

    Von Klasse geerbte Methoden net.risingworld.api.collider.Collider

    getType

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • HullCollider

      public HullCollider()
      Creates a new hull collider which uses the default mesh of the object for the hull representation.
    • HullCollider

      public HullCollider(boolean isTrigger)
      Creates a new hull collider which uses the default mesh of the object for the hull representation.
      Parameter:
      isTrigger - if true, this becomes a ghost collider (i.e the player doesn't collide with it, but you can still use it for raycasts).
    • HullCollider

      public HullCollider(MeshAsset mesh)
      Creates a new hull collider using the provided mesh.
      Parameter:
      mesh - the mesh you want to generate the hull from.
    • HullCollider

      public HullCollider(MeshAsset mesh, boolean isTrigger)
      Creates a new hull collider using the provided mesh.
      Parameter:
      mesh - the mesh you want to generate the hull from.
      isTrigger - if true, this becomes a ghost collider (i.e the player doesn't collide with it, but you can still use it for raycasts).
    • HullCollider

      public HullCollider(ModelAsset mesh)
      Creates a new hull collider using the provided mesh.
      Parameter:
      mesh - the mesh you want to generate the hull from.
    • HullCollider

      public HullCollider(ModelAsset mesh, boolean isTrigger)
      Creates a new hull collider using the provided mesh.
      Parameter:
      mesh - the mesh you want to generate the hull from.
      isTrigger - if true, this becomes a ghost collider (i.e the player doesn't collide with it, but you can still use it for raycasts).
  • Methodendetails

    • isTrigger

      public boolean isTrigger()
      Gets whether or not this is a "ghost collider". This means the player won't collide with it (i.e he can simply walk through this collider), but it can still be used for raycasts etc.
      Gibt zurück:
      true if this is a ghost collider / trigger collider, false if not.