Method ApplyWind
- Namespace
- Box3D
- Assembly
- Box3D.NET.dll
ApplyWind(Vector3, float, float, float, bool)
Applies an aerodynamic force to the body, based on this shape's area facing the wind.
public void ApplyWind(Vector3 wind, float drag, float lift, float maxSpeed, bool wake = true)Parameters
windVector3-
The wind velocity, in world space.
dragfloat-
The drag coefficient, opposing the relative velocity.
liftfloat-
The lift coefficient, perpendicular to the relative velocity.
maxSpeedfloat-
The cap on relative speed. Needed for stability; ten metres per second or less is typical.
wakebool-
Whether to wake the body.