Table of Contents

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

shapeId b3ShapeId

the shape id

wind Vector3

the wind velocity in world space

drag float

the drag coefficient, the force that opposes the relative velocity

lift float

the lift coefficient, the force that is perpendicular to the relative velocity

maxSpeed float

the maximum relative speed. Speed cap is necessary for stability. Typically 10m/s or less.

wake NativeBool

should this wake the body