Package com.github.stephengold.joltjni
Class TaperedCapsuleShapeSettings
java.lang.Object
com.github.stephengold.joltjni.JoltPhysicsObject
com.github.stephengold.joltjni.SerializableObject
com.github.stephengold.joltjni.ShapeSettings
com.github.stephengold.joltjni.ConvexShapeSettings
com.github.stephengold.joltjni.TaperedCapsuleShapeSettings
- All Implemented Interfaces:
- ConstConvexShapeSettings,- ConstJoltPhysicsObject,- ConstSerializableObject,- ConstShapeSettings,- RefTarget,- AutoCloseable,- Comparable<JoltPhysicsObject>
Settings used to construct a 
TaperedCylinderShape.- 
Constructor SummaryConstructorsConstructorDescriptionInstantiate default settings.TaperedCapsuleShapeSettings(float halfHeight, float topRadius, float bottomRadius) Instantiate settings for the specified dimensions.TaperedCapsuleShapeSettings(float halfHeight, float topRadius, float bottomRadius, PhysicsMaterial material) Instantiate settings for the specified dimensions and material.Instantiate a copy of the specified settings.
- 
Method SummaryModifier and TypeMethodDescriptionfloatReturn the bottom radius of the cylinder.floatReturn the half height of the tapered cylinder.floatReturn the top radius of the cylinder.voidsetBottomRadius(float radius) Alter the bottom radius of the cylinder.voidsetHalfHeightOfTaperedCylinder(float halfHeight) Alter the half height of the tapered cylinder.voidsetTopRadius(float radius) Alter the top radius of the cylinder.Methods inherited from class com.github.stephengold.joltjni.ConvexShapeSettingsgetDensity, getMaterial, setDensity, setMaterialMethods inherited from class com.github.stephengold.joltjni.ShapeSettingsclearCachedResult, cloneShapeSettings, create, getRefCount, setEmbedded, setVirtualAddressAsCoOwner, toRef, toRefCMethods inherited from class com.github.stephengold.joltjni.SerializableObjectgetRttiMethods inherited from class com.github.stephengold.joltjni.JoltPhysicsObjectclose, compareTo, equals, getContainingObject, hasAssignedNativeObject, hashCode, isCleanerStarted, ownsNativeObject, setVirtualAddress, setVirtualAddress, startCleaner, targetVa, toString, vaMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.ComparablecompareToMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstJoltPhysicsObjectclose, hasAssignedNativeObject, ownsNativeObject, targetVaMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstSerializableObjectgetRttiMethods inherited from interface com.github.stephengold.joltjni.readonly.ConstShapeSettingscreate, getRefCount, toRefC
- 
Constructor Details- 
TaperedCapsuleShapeSettingspublic TaperedCapsuleShapeSettings()Instantiate default settings.
- 
TaperedCapsuleShapeSettingspublic TaperedCapsuleShapeSettings(float halfHeight, float topRadius, float bottomRadius) Instantiate settings for the specified dimensions.- Parameters:
- halfHeight- half the desired height of the tapered cylinder
- topRadius- the desired top radius
- bottomRadius- the desired bottom radius
 
- 
TaperedCapsuleShapeSettingspublic TaperedCapsuleShapeSettings(float halfHeight, float topRadius, float bottomRadius, PhysicsMaterial material) Instantiate settings for the specified dimensions and material.- Parameters:
- halfHeight- half the desired height of the tapered cylinder
- topRadius- the desired top radius
- bottomRadius- the desired bottom radius
- material- the desired material (default=null)
 
- 
TaperedCapsuleShapeSettingsInstantiate a copy of the specified settings.- Parameters:
- original- the settings to copy (not- null, unaffected)
 
 
- 
- 
Method Details- 
getBottomRadiuspublic float getBottomRadius()Return the bottom radius of the cylinder. The settings are unaffected. (native attribute: mBottomRadius)- Returns:
- the bottom radius (≥0)
 
- 
getHalfHeightOfTaperedCylinderpublic float getHalfHeightOfTaperedCylinder()Return the half height of the tapered cylinder. The settings are unaffected. (native attribute: mHalfHeightOfTaperedCylinder)- Returns:
- half the height
 
- 
getTopRadiuspublic float getTopRadius()Return the top radius of the cylinder. The settings are unaffected. (native attribute: mTopRadius)- Returns:
- the top radius (≥0)
 
- 
setBottomRadiuspublic void setBottomRadius(float radius) Alter the bottom radius of the cylinder. (native attribute: mBottomRadius)- Parameters:
- radius- the desired bottom radius (≥0)
 
- 
setHalfHeightOfTaperedCylinderpublic void setHalfHeightOfTaperedCylinder(float halfHeight) Alter the half height of the tapered cylinder. (native attribute: mHalfHeightOfTaperedCylinder)- Parameters:
- halfHeight- one half of the desired height (≥0)
 
- 
setTopRadiuspublic void setTopRadius(float radius) Alter the top radius of the cylinder. (native attribute: mTopRadius)- Parameters:
- radius- the desired top radius (≥0)
 
 
-