Skip to content

Latest commit

 

History

History
30 lines (16 loc) · 655 Bytes

LinearSpring.constr.vec3.vec3.md

File metadata and controls

30 lines (16 loc) · 655 Bytes

LinearSpring(constr, vec3, vec3)

Makes the constraint springy, linearLimits(constr,vec3,vec3) must be called before for linear spring to work.

void linearSpring(this constr constraint, vec3 stiffness, vec3 damping)

Parameters

constraint

Type: constr

stiffness

Type: vec3

How stiff the sping will be.

damping

Type: vec3

How much damping (drag) to apply.

Related