Base component for character body parts. More...
| Import Statement: | import Clayground.Character3D |
| Inherits: | |
| Inherited By: | BodyPartsGroup, Foot, and Hand |
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.
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.