Package jolt.physics.collision.shape
Class ConvexShape
java.lang.Object
jolt.BaseJoltNative
jolt.AddressedJoltNative
jolt.DeletableJoltNative
jolt.physics.collision.shape.Shape
jolt.physics.collision.shape.ConvexShape
- All Implemented Interfaces:
Deletable,JoltNative
- Direct Known Subclasses:
BoxShape,CapsuleShape,ConvexHullShape,CylinderShape,SphereShape,TaperedCapsuleShape,TriangleShape
public sealed class ConvexShape
extends Shape
permits SphereShape, BoxShape, TriangleShape, CapsuleShape, TaperedCapsuleShape, CylinderShape, ConvexHullShape
ConvexShape relies on preview features of the Java platform:
ConvexShaperefers 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 ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic enum -
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ConvexShapeat(MemoryAddressPREVIEW addr) floatgetSupportFunction(ConvexShape.SupportMode mode, ConvexShape.SupportBuffer buffer, FVec3 scale) voidsetDensity(float density) voidsetMaterial(PhysicsMaterial material) Methods 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
-
Constructor Details
-
ConvexShape
-
-
Method Details
-
at
-
getSupportFunction
public ConvexShape.Support getSupportFunction(ConvexShape.SupportMode mode, ConvexShape.SupportBuffer buffer, FVec3 scale) -
setMaterial
-
getMaterial
-
setDensity
public void setDensity(float density) -
getDensity
public float getDensity()
-
ConvexShapewhen preview features are enabled.