Package jolt.physics.collision.shape
Class CylinderShape
java.lang.Object
jolt.BaseJoltNative
jolt.AddressedJoltNative
jolt.DeletableJoltNative
jolt.physics.collision.shape.Shape
jolt.physics.collision.shape.ConvexShape
jolt.physics.collision.shape.CylinderShape
- All Implemented Interfaces:
Deletable,JoltNative
CylinderShape relies on preview features of the Java platform:
CylinderShaperefers 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 CylinderShapeat(MemoryAddressPREVIEW addr) floatfloatstatic CylinderShapeof(float halfHeight, float radius, float convexRadius) static CylinderShapeof(float halfHeight, float radius, 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 CylinderShape of(float halfHeight, float radius, float convexRadius, @Nullable PhysicsMaterial material) -
of
-
getRadius
public float getRadius() -
getHalfHeight
public float getHalfHeight()
-
CylinderShapewhen preview features are enabled.