Package jolt.physics.collision.shape
Class MeshShapeSettings
java.lang.Object
jolt.BaseJoltNative
jolt.AddressedJoltNative
jolt.DeletableJoltNative
jolt.physics.collision.shape.ShapeSettings
jolt.physics.collision.shape.MeshShapeSettings
- All Implemented Interfaces:
Deletable,JoltNative
MeshShapeSettings relies on preview features of the Java platform:
MeshShapeSettingsrefers to one or more preview APIs:MemoryAddress.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
-
Field Summary
Fields inherited from class jolt.DeletableJoltNative
deletedFields inherited from class jolt.AddressedJoltNative
handle -
Method Summary
Modifier and TypeMethodDescriptionstatic MeshShapeSettingsat(MemoryAddressPREVIEW addr) intstatic MeshShapeSettingsof(Collection<FVec3> vertices, Collection<Integer> indices, Collection<PhysicsMaterial> materials) static MeshShapeSettingsof(FVec3[] vertices, int[] indices, PhysicsMaterial[] materials) voidsanitize()voidsetMaxTrianglesPerLeaf(int maxTrianglesPerLeaf) Methods inherited from class jolt.physics.collision.shape.ShapeSettings
create, deleteInternal, getUserData, setUserDataMethods inherited from class jolt.DeletableJoltNative
delete, isDeletedMethods inherited from class jolt.AddressedJoltNative
addressMethods inherited from class jolt.BaseJoltNative
equals, hashCode
-
Method Details
-
at
-
of
-
of
public static MeshShapeSettings of(Collection<FVec3> vertices, Collection<Integer> indices, Collection<PhysicsMaterial> materials) -
getMaxTrianglesPerLeaf
public int getMaxTrianglesPerLeaf() -
setMaxTrianglesPerLeaf
public void setMaxTrianglesPerLeaf(int maxTrianglesPerLeaf) -
sanitize
public void sanitize()
-
MeshShapeSettingswhen preview features are enabled.