Package jolt.physics.collision.shape
Class CapsuleShapeSettings
java.lang.Object
jolt.BaseJoltNative
jolt.AddressedJoltNative
jolt.DeletableJoltNative
jolt.physics.collision.shape.ShapeSettings
jolt.physics.collision.shape.ConvexShapeSettings
jolt.physics.collision.shape.CapsuleShapeSettings
- All Implemented Interfaces:
Deletable,JoltNative
CapsuleShapeSettings relies on preview features of the Java platform:
CapsuleShapeSettingsrefers 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 CapsuleShapeSettingsat(MemoryAddressPREVIEW addr) floatfloatstatic CapsuleShapeSettingsof(float halfHeight, float radius) static CapsuleShapeSettingsof(float halfHeight, float radius, PhysicsMaterial material) voidsetHalfHeight(float halfHeight) voidsetRadius(float radius) 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 CapsuleShapeSettings of(float halfHeight, float radius, @Nullable PhysicsMaterial material) -
of
-
getHalfHeight
public float getHalfHeight() -
setHalfHeight
public void setHalfHeight(float halfHeight) -
getRadius
public float getRadius() -
setRadius
public void setRadius(float radius)
-
CapsuleShapeSettingswhen preview features are enabled.