Shop OBEX P1 Docs P2 Docs Learn Events
PENGUIN VID Virtual Inertial Dampener — Parallax Forums

PENGUIN VID Virtual Inertial Dampener

HumanoidoHumanoido Posts: 5,770
edited 2007-09-23 10:54 in Robotics
While working on penguin_shag_walker.bpx, a new VR
concept was introduced in code. This is VIDS, Virtual
Inertial Dampeners. Use VIDS to increase Penguin
stability, adjust and calibrate raw motion, and
introduce various special effects contributing to
VR servos. The following comments
tell the story.

humanoido

' (VID) VIRTUAL INERTIAL DAMPENERS
' ---------------------------------------------------
' This program introduces the use of Virtual Inertial Dampeners.
' These are simple. A PAUSE statement provides a time decay in the
' interruption of the momentum cycle. This can be adjusted, though
' it's already optimized in the code. A greater value increases the
' mechanical dampening.

' To calculate, we approximate the moment of inertia to simplify the
' equation and corresponding PBasic code. Mass is directly related to
' inertia of a body and can be defined by the formula F = ma with
' force, mass, and acceleration (motion).

' With this formula, the greater the mass, the less a body
' accelerates and the converse. We subtract the amount of force due
' to friction, thus making VR Virtual dampening possible by
' introducing the t dimension (time). Inertial decay increases with
' unit time. Therefore the equation for inertial dampening
' simplifies to one PBasic statement.
Sign In or Register to comment.