frequency = 1;
amplitude = 45;
decay = 0.1;
amplitude * Math.sin(time * frequency * Math.PI * 2) * Math.exp(-decay * time);
Ideal for creating physics-based effects or adding organic motion to objects like hanging signs, swinging decorations, or other elements that need natural oscillation.