Simulates a chain of connected springs (like a rope, tail, or hair strand) where each segment
follows the one before it with spring physics. Creates realistic swaying, dragging motion.
Use Cases:
Character tails (dragon, cat, lizard)
Hair strands or ponytails
Ropes, chains, vines
Tentacles with secondary motion
Cloth strips or ribbons
Features:
Automatic length constraints
Gravity influence
Progressive stiffness (base is stiffer than tip)
Progressive damping (tip has more drag)
Example
// Dragon tail with 8 segments consttail = newSpringChain( 8, // Number of segments { stiffness:100, // Base stiffness damping:10, // Base damping mass:1 }, 0.4// Segment length );
Multi-Segment Spring Chain System.
Simulates a chain of connected springs (like a rope, tail, or hair strand) where each segment follows the one before it with spring physics. Creates realistic swaying, dragging motion.
Use Cases:
Features:
Example
Example