Bitbybit Docs
    Preparing search index...

    Class CreateCapsuleDto (Inputs.BabylonMeshBuilder)

    Feeds babylon.meshBuilder.createCapsule: the axis, length and radii of a cylinder with rounded ends, and how finely each part is divided.

    Index

    Constructors

    • Parameters

      • Optionalorientation: Vector3
      • Optionalsubdivisions: number
      • Optionaltessellation: number
      • Optionalheight: number
      • Optionalradius: number
      • OptionalcapSubdivisions: number
      • OptionalradiusTop: number
      • OptionalradiusBottom: number
      • OptionaltopCapSubdivisions: number
      • OptionalbottomCapSubdivisions: number
      • OptionalsideOrientation: sideOrientationEnum
      • OptionalenableShadows: boolean

      Returns CreateCapsuleDto

    Properties

    orientation: Vector3

    The direction the length of the capsule runs along, as [x, y, z]; [0, 1, 0] stands it upright

    subdivisions: number

    Number of divisions along the straight middle part

    2
    

    0

    Infinity

    1

    tessellation: number

    Number of divisions around the capsule; more is rounder

    16
    

    3

    Infinity

    1

    height: number

    Full length from end to end, rounded caps included, in scene units

    2
    

    0

    Infinity

    0.1

    radius: number

    Radius of the middle part, in scene units, unless the cap radii override it

    1
    

    0

    Infinity

    0.1

    capSubdivisions: number

    Number of divisions over each rounded end; more is smoother

    6
    

    0

    Infinity

    1

    radiusTop: number

    Radius of the top end, in scene units

    0.5
    

    0

    Infinity

    0.1

    radiusBottom: number

    Radius of the bottom end, in scene units

    0.5
    

    0

    Infinity

    0.1

    topCapSubdivisions: number

    Number of divisions over the top end, overriding capSubdivisions

    6
    

    0

    Infinity

    1

    bottomCapSubdivisions: number

    Number of divisions over the bottom end, overriding capSubdivisions

    6
    

    0

    Infinity

    1

    sideOrientation: sideOrientationEnum

    Which side of each face is drawn: the front, the back or both; single-sided meshes are invisible from behind

    doubleside
    
    enableShadows: boolean

    When true, the mesh casts and receives shadows from the lights that have them enabled

    true