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.
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 Sourcedescription
Optional description of the sail type and its characteristics.
Declaration
public string description
Field Value
| Type | Description |
|---|---|
| string |
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 |
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 |
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 |
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 |