Class DemoOscillator
Moves a Rigidbody in a sinusoidal oscillation pattern. Useful for creating moving platforms or obstacles in demo scenes.
Namespace: NWH.Common.Demo
Assembly: NWH.Common.dll
Syntax
public class DemoOscillator : MonoBehaviour
Fields
| Edit this page View Sourcespeed
Speed of the oscillation in Hz. Higher values result in faster movement.
Declaration
public float speed
Field Value
| Type | Description |
|---|---|
| float |
travel
Maximum displacement from the starting position in each axis.
Declaration
public Vector3 travel
Field Value
| Type | Description |
|---|---|
| Vector3 |