angle constraint for cone limit (1 DOF)
cosine of half cone angle (cos(θ)) - constraint active when t1·t2 < cosHalfConeAngle
current cosine of angle between twist axes (t1 · t2)
attachment point on body 1 in local space
attachment point on body 2 in local space
twist axis on body 1 in local space (normalized)
twist axis on body 2 in local space (normalized)
point constraint for translation (3 DOF)
world space rotation axis (t2 × t1, normalized) for angular constraint
Cone constraint constrains 2 bodies to a single point and limits the swing between twist axes within a cone.
Constraint: t1 · t2 >= cos(θ)
Where:
This removes 3 translation DOF (point constraint) and limits rotation to a cone (1 DOF limit). Note: Unlike SwingTwistConstraint, this does NOT constrain twist rotation around the axis.