Package jolt.physics.collision.shape
Class TriangleShape
java.lang.Object
jolt.BaseJoltNative
jolt.AddressedJoltNative
jolt.DeletableJoltNative
jolt.physics.collision.shape.Shape
jolt.physics.collision.shape.ConvexShape
jolt.physics.collision.shape.TriangleShape
- All Implemented Interfaces:
Deletable,JoltNative
TriangleShape relies on preview features of the Java platform:
TriangleShaperefers 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class jolt.physics.collision.shape.ConvexShape
ConvexShape.Support, ConvexShape.SupportBuffer, ConvexShape.SupportMode -
Field Summary
Fields inherited from class jolt.physics.collision.shape.Shape
DEFAULT_CONVEX_RADIUSFields inherited from class jolt.DeletableJoltNative
deletedFields inherited from class jolt.AddressedJoltNative
handle -
Method Summary
Modifier and TypeMethodDescriptionstatic TriangleShapeat(MemoryAddressPREVIEW addr) floatstatic TriangleShapestatic TriangleShapestatic TriangleShapeof(FVec3 v1, FVec3 v2, FVec3 v3, float convexRadius, PhysicsMaterial material) Methods inherited from class jolt.physics.collision.shape.ConvexShape
getDensity, getMaterial, getSupportFunction, setDensity, setMaterialMethods inherited from class jolt.physics.collision.shape.Shape
deleteInternal, getCenterOfMass, getInnerRadius, getLocalBounds, getMaterial, getSubShapeIDBitsRecursive, getSubShapeTransformedShape, getSubShapeUserData, getSubType, getSupportingFace, getSurfaceNormal, getType, getUserData, getVolume, getWorldSpaceBounds, isValidScale, mustBeStatic, 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 TriangleShape of(FVec3 v1, FVec3 v2, FVec3 v3, float convexRadius, @Nullable PhysicsMaterial material) -
of
-
of
-
getConvexRadius
public float getConvexRadius()
-
TriangleShapewhen preview features are enabled.