Package com.github.stephengold.joltjni
Class TaperedCylinderShapeSettings
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.TaperedCylinderShapeSettings
- All Implemented Interfaces:
- ConstConvexShapeSettings,- ConstJoltPhysicsObject,- ConstSerializableObject,- ConstShapeSettings,- RefTarget,- AutoCloseable,- Comparable<JoltPhysicsObject>
Settings used to construct a 
TaperedCylinderShape.- 
Constructor SummaryConstructorsConstructorDescriptionInstantiate default settings.TaperedCylinderShapeSettings(float halfHeight, float topRadius, float bottomRadius) Instantiate settings for the specified dimensions.TaperedCylinderShapeSettings(float halfHeight, float topRadius, float bottomRadius, float convexRadius) Instantiate settings for the specified dimensions.TaperedCylinderShapeSettings(float halfHeight, float topRadius, float bottomRadius, float convexRadius, PhysicsMaterial material) Instantiate settings for the specified dimensions and material.Instantiate a copy of the specified settings.
- 
Method SummaryModifier and TypeMethodDescriptionfloatReturn the bottom radius.floatReturn the convex radius.floatReturn the half height.floatReturn the top radius.voidsetBottomRadius(float radius) Alter the bottom radius.voidsetConvexRadius(float radius) Alter the convex radius.voidsetHalfHeight(float halfHeight) Alter the half height.voidsetTopRadius(float radius) Alter the top radius.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- 
TaperedCylinderShapeSettingspublic TaperedCylinderShapeSettings()Instantiate default settings.
- 
TaperedCylinderShapeSettingspublic TaperedCylinderShapeSettings(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 of the tapered cylinder
- bottomRadius- the desired bottom radius of the tapered cylinder
 
- 
TaperedCylinderShapeSettingspublic TaperedCylinderShapeSettings(float halfHeight, float topRadius, float bottomRadius, float convexRadius) Instantiate settings for the specified dimensions.- Parameters:
- halfHeight- half the desired height of the tapered cylinder
- topRadius- the desired top radius of the tapered cylinder
- bottomRadius- the desired bottom radius of the tapered cylinder
- convexRadius- the desired convex radius (default=0.05)
 
- 
TaperedCylinderShapeSettingspublic TaperedCylinderShapeSettings(float halfHeight, float topRadius, float bottomRadius, float convexRadius, 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 of the tapered cylinder
- bottomRadius- the desired bottom radius of the tapered cylinder
- convexRadius- the desired convex radius (default=0.05)
- material- the desired material (default=null)
 
- 
TaperedCylinderShapeSettingsInstantiate a copy of the specified settings.- Parameters:
- original- the settings to copy (not- null, unaffected)
 
 
- 
- 
Method Details- 
getBottomRadiuspublic float getBottomRadius()Return the bottom radius. The settings are unaffected. (native attribute: mRadius)- Returns:
- the bottom radius of the tapered cylinder (≥0)
 
- 
getConvexRadiuspublic float getConvexRadius()Return the convex radius. The settings are unaffected. (native attribute: mConvexRadius)- Returns:
- the convex radius (≥0)
 
- 
getHalfHeightpublic float getHalfHeight()Return the half height. The settings are unaffected. (native attribute: mHalfHeight)- Returns:
- half the height
 
- 
getTopRadiuspublic float getTopRadius()Return the top radius. The settings are unaffected. (native attribute: mTopRadius)- Returns:
- the top radius (≥0)
 
- 
setBottomRadiuspublic void setBottomRadius(float radius) Alter the bottom radius. (native attribute: mBottomRadius)- Parameters:
- radius- the desired bottom radius (≥0)
 
- 
setConvexRadiuspublic void setConvexRadius(float radius) Alter the convex radius. (native attribute: mConvexRadius)- Parameters:
- radius- the desired convex radius (≥0, default=0.05)
 
- 
setHalfHeightpublic void setHalfHeight(float halfHeight) Alter the half height. (native attribute: mHalfHeight)- Parameters:
- halfHeight- one half of the desired height (≥0)
 
- 
setTopRadiuspublic void setTopRadius(float radius) Alter the top radius. (native attribute: mTopRadius)- Parameters:
- radius- the desired top radius (≥0)
 
 
-