dragAcceleration

function dragAcceleration
rigidBody.ts:103
dragAcceleration(density: number, relativeVelocity: Vec3, ballisticCoefficient: number) → Vec3

Drag acceleration for a body moving through an atmosphere.

ballisticCoefficient is mass / (dragCoefficient × area) in kg/m²; higher means it punches through. Velocity must be relative to the air, which on a rotating planet is not the same as velocity in the planet-centered frame — expressing it in the rotating surface frame is what gets that right for free.

densitynumber
Undocumented
relativeVelocityVec3
Undocumented
ballisticCoefficientnumber
Undocumented
ReturnsVec3