Package jolt.physics.collision.shape
Class TriangleShapeSettings
java.lang.Object
jolt.BaseJoltNative
jolt.AddressedJoltNative
jolt.DeletableJoltNative
jolt.physics.collision.shape.ShapeSettings
jolt.physics.collision.shape.ConvexShapeSettings
jolt.physics.collision.shape.TriangleShapeSettings
- All Implemented Interfaces:
Deletable,JoltNative
TriangleShapeSettings relies on preview features of the Java platform:
TriangleShapeSettingsrefers 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 TriangleShapeSettingsat(MemoryAddressPREVIEW addr) floatvoidgetVertices(FVec3 outV1, FVec3 outV2, FVec3 outV3) static TriangleShapeSettingsstatic TriangleShapeSettingsstatic TriangleShapeSettingsof(FVec3 v1, FVec3 v2, FVec3 v3, float convexRadius, PhysicsMaterial material) voidsetConvexRadius(float convexRadius) voidsetVertices(FVec3 v1, FVec3 v2, FVec3 v3) Methods inherited from class jolt.physics.collision.shape.ConvexShapeSettings
getDensity, getMaterial, setDensity, setMaterialMethods 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
public static TriangleShapeSettings of(FVec3 v1, FVec3 v2, FVec3 v3, float convexRadius, @Nullable PhysicsMaterial material) -
of
-
of
-
getVertices
-
setVertices
-
getConvexRadius
public float getConvexRadius() -
setConvexRadius
public void setConvexRadius(float convexRadius)
-
TriangleShapeSettingswhen preview features are enabled.