NWH Common
Search Results for

    Show / Hide Table of Contents

    Class DemoOscillator

    Moves a Rigidbody in a sinusoidal oscillation pattern. Useful for creating moving platforms or obstacles in demo scenes.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    DemoOscillator
    Namespace: NWH.Common.Demo
    Assembly: NWH.Common.dll
    Syntax
    public class DemoOscillator : MonoBehaviour

    Fields

    | Edit this page View Source

    speed

    Speed of the oscillation in Hz. Higher values result in faster movement.

    Declaration
    public float speed
    Field Value
    Type Description
    float
    | Edit this page View Source

    travel

    Maximum displacement from the starting position in each axis.

    Declaration
    public Vector3 travel
    Field Value
    Type Description
    Vector3
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © NWH - Vehicle Physics, Aerodynamics, Dynamic Water Physics