Package net.risingworld.api.collider
Class MeshCollider
java.lang.Object
net.risingworld.api.collider.Collider
net.risingworld.api.collider.MeshCollider
Represents a mesh-accurate collision shape
-
Nested Class Summary
Nested classes/interfaces inherited from class net.risingworld.api.collider.Collider
Collider.Type
-
Constructor Summary
ConstructorDescriptionCreates a new mesh collider which uses the default mesh of the object.MeshCollider
(MeshAsset mesh) Creates a new mesh collider using the provided mesh.MeshCollider
(ModelAsset mesh) Creates a new mesh collider using the provided mesh. -
Method Summary
-
Constructor Details
-
MeshCollider
public MeshCollider()Creates a new mesh collider which uses the default mesh of the object. -
MeshCollider
Creates a new mesh collider using the provided mesh.- Parameters:
mesh
- the mesh you want to use as collider.
-
MeshCollider
Creates a new mesh collider using the provided mesh.- Parameters:
mesh
- the mesh you want to use as collider.
-