SpringJointΒΆ

Inherited: Joint

DescriptionΒΆ

A SpringJoint uses spring and damper parameters to control the relative movement of the connected rigid bodies.

Public MethodsΒΆ

float

damper () const

void

setDamper (float damper)

void

setSpring (float spring)

float

spring () const

Static MethodsΒΆ

None

Methods DescriptionΒΆ

float SpringJoint::damper () const

Returns the damping coefficient of the spring joint.

See also setDamper().


void SpringJoint::setDamper (float damper)

Sets the damper coefficient of the spring joint.

See also damper().


void SpringJoint::setSpring (float spring)

Sets the spring stiffness of the joint.

See also spring().


float SpringJoint::spring () const

Returns the spring stiffness of the joint.

See also setSpring().