constraints-physics
Installation
SKILL.md
Roblox Constraints & Physics
When implementing physics systems, use these constraint patterns for realistic and performant mechanics.
Constraint Reference
WeldConstraint
-- Rigid connection between two parts (no relative movement)
local weld = Instance.new("WeldConstraint")
weld.Part0 = part1
weld.Part1 = part2
weld.Parent = part1
-- Use for: Static connections, attaching accessories
-- Note: More efficient than Motor6D for non-animated joints