A complete leg with upper leg, lower leg, and foot. More...
| Import Statement: | import Clayground.Character3D |
| Inherits: |
Leg is a hierarchical body part group containing an upper leg, lower leg, and foot connected by animatable joints (hip, knee, ankle).
The leg uses a joint-based hierarchy for natural animation: - Hip joint controls the entire leg - Knee joint controls lower leg and foot - Ankle joint controls foot rotation
Example usage:
import Clayground.Character3D Leg { width: 1.2 height: 5.5 upperRatio: 0.5 color: "#708090" footColor: "#8b4513" }
See also Arm, Foot, and Character.
color : color |
Color of the leg (upper and lower segments).
foot : Node |
Reference to the ankle joint for animation.
footColor : color |
Color of the foot (shoe color).
footDepth : real |
Depth of the foot.
footHeight : real |
Height of the foot.
footWidth : real |
Width of the foot.
lowerLeg : Node |
Reference to the knee joint for animation.
lowerTaper : real |
Taper factor for lower leg width/depth (0-1).
Controls how much the calf narrows compared to the thigh.
upperLeg : Node |
Reference to the hip joint for animation.
upperRatio : real |
Proportion of total leg length for upper leg (0.4-0.6).
A value of 0.5 means upper and lower leg are equal length.