|
Unity HDRP Product Visualizer 1.0.0
Interactive 3D product showcase built with Unity 6 and HDRP
|
Animates a GameObject with a gentle sinusoidal float and dual-axis tilt. More...


Public Attributes | |
Float | |
| float | floatAmplitude = 0.05f |
| Peak vertical displacement from the rest position (metres). | |
| float | floatSpeed = 1.2f |
| Cycles per second of the vertical sine wave. | |
Tilt | |
| float | tiltAmplitude = 2f |
| Peak rotation on X and Z axes (degrees). | |
| float | tiltSpeed = 0.8f |
| Base frequency of the tilt oscillation. | |
Animates a GameObject with a gentle sinusoidal float and dual-axis tilt.
The animation runs entirely in Update() via Mathf.Sin / Mathf.Cos, requiring no Animator or AnimationClip asset. A random phase offset is assigned at Start so multiple products in the same scene do not move in sync.
Definition at line 27 of file ProductFloatAnimation.cs.
| float ProductFloatAnimation.floatAmplitude = 0.05f |
Peak vertical displacement from the rest position (metres).
Definition at line 38 of file ProductFloatAnimation.cs.
| float ProductFloatAnimation.floatSpeed = 1.2f |
Cycles per second of the vertical sine wave.
Definition at line 41 of file ProductFloatAnimation.cs.
| float ProductFloatAnimation.tiltAmplitude = 2f |
Peak rotation on X and Z axes (degrees).
Definition at line 50 of file ProductFloatAnimation.cs.
| float ProductFloatAnimation.tiltSpeed = 0.8f |
Base frequency of the tilt oscillation.
Z-axis uses this value, X-axis uses 70% of it to avoid synchronised movement.
Definition at line 54 of file ProductFloatAnimation.cs.