Method: MSPhysics::Spring#spring_drag

Defined in:
RubyExtension/MSPhysics/joint_spring.rb

#spring_dragNumeric

Note:

This option associates with the Hooke’s spring mode.

Get Hooke’s spring drag.

Returns:

  • (Numeric)

    A spring drag coefficient in kg/s, a value greater than or equal to zero.

Since:

  • 1.0.0



170
171
172
# File 'RubyExtension/MSPhysics/joint_spring.rb', line 170

def spring_drag
  MSPhysics::Newton::Spring.get_spring_drag(@address)
end