Class HullWindApplicator
Applies wind drag forces to the hull of a sailing vessel based on the global wind conditions. Calculates the projected area of the hull facing the wind and applies an appropriate drag force. Does not account for the waterline - dimensions should represent only the hull portion above water. Requires a WindGenerator to be present in the scene.
Namespace: NWH.DWP2.SailController
Assembly: NWH.DWP2.dll
Syntax
public class HullWindApplicator : MonoBehaviour
Fields
| Edit this page View Sourcedimensions
Physical dimensions of the hull above the waterline. X represents width, Y represents height, Z represents length. These dimensions are used to calculate the projected area when wind hits the hull from different angles.
Declaration
[Tooltip("The dimensions of the object (x = width, y = height, z = length).")]
[SerializeField]
public Vector3 dimensions
Field Value
| Type | Description |
|---|---|
| Vector3 |
dragCoefficient
Drag coefficient applied to the wind force calculation. Higher values result in stronger wind resistance. Typical values range from 0.5 to 2.0 depending on hull shape and surface characteristics.
Declaration
[Tooltip("The drag coefficient of the object.")]
[SerializeField]
public float dragCoefficient
Field Value
| Type | Description |
|---|---|
| float |