View source
class CapsuleGeometry
package away3d.primitives
extends PrimitiveBase › Geometry › NamedAssetBase
Available on all platforms
A Capsule primitive mesh.
Constructor
new(radius:Float = 50, height:Float = 100, segmentsW:Int = 16, segmentsH:Int = 15, yUp:Bool = true)
Creates a new Capsule object.
Parameters:
radius | The radius of the capsule. |
|---|---|
height | The height of the capsule. |
segmentsW | Defines the number of horizontal segments that make up the capsule. Defaults to 16. |
segmentsH | Defines the number of vertical segments that make up the capsule. Defaults to 15. Must be uneven value. |
yUp | Defines whether the capsule poles should lay on the Y-axis (true) or on the Z-axis (false). |