Package net.risingworld.api.collider
Class HullCollider
java.lang.Object
net.risingworld.api.collider.Collider
net.risingworld.api.collider.HullCollider
Represents a hull collider, i.e a rough representation of a mesh collider
- 
Nested Class SummaryNested classes/interfaces inherited from class net.risingworld.api.collider.ColliderCollider.Type
- 
Constructor SummaryConstructorsConstructorDescriptionCreates 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.HullCollider(MeshAsset mesh) Creates a new hull collider using the provided mesh.HullCollider(MeshAsset mesh, boolean isTrigger) Creates a new hull collider using the provided mesh.HullCollider(ModelAsset mesh) Creates a new hull collider using the provided mesh.HullCollider(ModelAsset mesh, boolean isTrigger) Creates a new hull collider using the provided mesh.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanGets whether or not this is a "ghost collider".
- 
Constructor Details- 
HullColliderpublic HullCollider()Creates a new hull collider which uses the default mesh of the object for the hull representation.
- 
HullColliderpublic HullCollider(boolean isTrigger) Creates a new hull collider which uses the default mesh of the object for the hull representation.- Parameters:
- 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).
 
- 
HullColliderCreates a new hull collider using the provided mesh.- Parameters:
- mesh- the mesh you want to generate the hull from.
 
- 
HullColliderCreates a new hull collider using the provided mesh.- Parameters:
- 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).
 
- 
HullColliderCreates a new hull collider using the provided mesh.- Parameters:
- mesh- the mesh you want to generate the hull from.
 
- 
HullColliderCreates a new hull collider using the provided mesh.- Parameters:
- 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).
 
 
- 
- 
Method Details- 
isTriggerpublic 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.- Returns:
- true if this is a ghost collider / trigger collider, false if not.
 
 
-