module('projects.SWD12.physics').load(); p = projects.SWD12.physics; d = projects.SWD12.deltablue; b1 = new p.Connector() b1.setFill(Color.red) b1.openInWorld() b2 = new p.Connector() b2.openInWorld() l = new p.ConstraintLine( b1.constraints.center, b2.constraints.center) l.disableGrabbing() c1 = new d.PointDistanceConstraint( b1.constraints.position, b2.constraints.position, 100, Strength.NORMAL); c2 = new d.StayConstraint( b1.constraints.position, Strength.PREFERRED);
Workspace
X
M