unreal.RigUnit_SpringInterp

class unreal.RigUnit_SpringInterp(current: float = 0.0, target: float = 0.0, stiffness: float = 0.0, critical_damping: float = 0.0, mass: float = 0.0, result: float = 0.0)

Bases: RigVMFunction_SimBase

Uses a simple spring model to interpolate a float from Current to Target.

C++ Source:

  • Plugin: ControlRig

  • Module: ControlRig

  • File: RigUnit_SpringInterp.h

Editor Properties: (see get_editor_property/set_editor_property)

  • critical_damping (float): [Read-Write]

  • current (float): [Read-Write]

  • mass (float): [Read-Write]

  • result (float): [Read-Write]

  • stiffness (float): [Read-Write]

  • target (float): [Read-Write]

property critical_damping: float

[Read-Write]

Type:

(float)

property current: float

[Read-Write]

Type:

(float)

property mass: float

[Read-Write]

Type:

(float)

property result: float

[Read-Only]

Type:

(float)

property stiffness: float

[Read-Write]

Type:

(float)

property target: float

[Read-Write]

Type:

(float)