Method b3Shape_ApplyWind
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
b3Shape_ApplyWind(b3ShapeId, Vector3, float, float, float, NativeBool)
Apply a wind force to the body for this shape using the density of air. This considers the projected area of the shape in the wind direction. This also considers the relative velocity of the shape.
public static extern void b3Shape_ApplyWind(b3ShapeId shapeId, Vector3 wind, float drag, float lift, float maxSpeed, NativeBool wake)Parameters
shapeIdb3ShapeId-
the shape id
windVector3-
the wind velocity in world space
dragfloat-
the drag coefficient, the force that opposes the relative velocity
liftfloat-
the lift coefficient, the force that is perpendicular to the relative velocity
maxSpeedfloat-
the maximum relative speed. Speed cap is necessary for stability. Typically 10m/s or less.
wakeNativeBool-
should this wake the body