object.length

Type Number
Object Joint
Library physics.*
Revision Release 2024.3703
Keywords joint, length
See also Physics Joints (guide)

Overview

Defines the distance between the anchor points for a "distance" joint, which should not be zero or very short. If you position the bodies before applying a distance joint to them, this length will automatically be set as the distance between the anchor points, so it's usually not necessary to set this parameter.