← Back to Docs
  • index.html
  • Clayground
  • Clayground.Character3D
  • BodyPart
  • Clayground 2025.2
  • BodyPart QML Type

    Base component for character body parts. More...

    Import Statement: import Clayground.Character3D
    Inherits:

    Box3D

    Inherited By:

    BodyPartsGroup, Foot, and Hand

    Properties

    Detailed Description

    BodyPart provides the foundation for all character body part components, extending Box3D with default styling and positioning properties.

    It sets sensible defaults for character rendering: edges are shown with moderate thickness, shadows are cast, and parts are pickable for interaction.

    Example usage:

    import Clayground.Character3D
    
    BodyPart {
        width: 1.0
        height: 2.0
        depth: 0.5
        color: "#4169e1"
        basePos: Qt.vector3d(0, 1, 0)
    }

    See also BodyPartsGroup and Box3D.

    Property Documentation

    baseEuler : vector3d

    The base rotation of the body part in Euler angles.

    Used as the reference rotation for animations. The actual eulerRotation property is bound to this value, allowing animations to modify rotation while preserving the original base orientation.


    basePos : vector3d

    The base position of the body part.

    Used as the reference position for animations. The actual position property is bound to this value, allowing animations to modify position while preserving the original base position.