Profile image

spring-damper gauge demo

115k hpgbproductions  10 days ago
0 downloads
Unlisted No Tags

constants:
k (spring constant)
c (damping constant)
values do not correspond to real life units, don't copy values from real life/ other software and expect it to work first try

deltaTime is the time difference between this frame and the previous frame, you can assume it to be 0.01 but this will make it act differently in low physics
(if you are just using it for gauges, and not moving parts, you can cheat though)

SETTER v: v + deltaTime * (k*(x_tgt - x) - c*v)
SETTER x: x + deltaTime * v

Controls:
VTOL: move gauge
Activate8: change deltaTime (0.01 when on, 0.02 when off)

General Characteristics

  • Created On Windows
  • Wingspan 1.6ft (0.5m)
  • Length 7.6ft (2.3m)
  • Height 3.3ft (1.0m)
  • Empty Weight 618lbs (280kg)
  • Loaded Weight 618lbs (280kg)

Performance

  • Wing Loading N/A
  • Wing Area 0.0ft2 (0.0m2)
  • Drag Points 397

Parts

  • Number of Parts 7
  • Control Surfaces 0
  • Performance Cost 29

This post is unlisted and upvoting is disabled.