Skip to content

class_dampedspringjoint2d

reduz edited this page Feb 23, 2014 · 10 revisions

DampedSpringJoint2D

####Inherits: Joint2D ####Category: Core

Brief Description

Damped sprint constraint for 2D physics.

Member Functions

Description

Damped sprint constraint for 2D physics. This resembles a sprint joint that always want to go back to a given length.

Member Function Description

  • void set&#95length ( real length )

Set the maximum length of the sprint joint.

  • real get&#95length ( ) const

Return the maximum length of the sprint joint.

  • void set&#95rest&#95length ( real rest_length )

Set the resting length of the sprint joint. The joint will always try to go to back this length when pulled apart.

  • real get&#95rest&#95length ( ) const

Return the resting length of the sprint joint. The joint will always try to go to back this length when pulled apart.

  • void set&#95stiffness ( real stiffness )

Set the stiffness of the spring joint.

  • real get&#95stiffness ( ) const

Return the stiffness of the spring joint.

  • void set&#95damping ( real damping )

Set the damping of the spring joint.

  • real get&#95damping ( ) const

Return the damping of the spring joint.

Clone this wiki locally