Dynamic Water Physics 2
Search Results for

    Show / Hide Table of Contents

    Class SailPreset

    Defines the aerodynamic characteristics of a sail through lift and drag coefficient curves. Contains the relationship between angle of attack and force generation. Different sail types (square, lateen, bermuda, etc.) can be represented by different presets. Can be created via Assets > Create > NWH > DWP2 > SailPreset.

    Inheritance
    object
    Object
    ScriptableObject
    SailPreset
    Namespace: NWH.DWP2.SailController
    Assembly: NWH.DWP2.dll
    Syntax
    [CreateAssetMenu(fileName = "SailPreset", menuName = "NWH/DWP2/SailPreset", order = 1)]
    public class SailPreset : ScriptableObject

    Fields

    | Edit this page View Source

    description

    Optional description of the sail type and its characteristics.

    Declaration
    public string description
    Field Value
    Type Description
    string
    | Edit this page View Source

    dragCoefficientVsAoACurve

    Defines how drag coefficient varies with angle of attack. X-axis represents angle of attack in degrees (-180 to 180). Y-axis represents the drag coefficient multiplier. Drag acts in the direction of the apparent wind.

    Declaration
    public AnimationCurve dragCoefficientVsAoACurve
    Field Value
    Type Description
    AnimationCurve
    | Edit this page View Source

    dragScale

    Global multiplier for all drag forces. Values greater than 1 increase drag, values less than 1 reduce it. Does not affect the shape of the drag curve.

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

    liftCoefficientVsAoACurve

    Defines how lift coefficient varies with angle of attack. X-axis represents angle of attack in degrees (-180 to 180). Y-axis represents the lift coefficient multiplier. Lift acts perpendicular to the sail plane.

    Declaration
    public AnimationCurve liftCoefficientVsAoACurve
    Field Value
    Type Description
    AnimationCurve
    | Edit this page View Source

    liftScale

    Global multiplier for all lift forces. Values greater than 1 increase lift, values less than 1 reduce it. Does not affect the shape of the lift curve.

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