Apply Wind Force

Pure
ApplyWindForceToProjectile

Applies wind force to a projectile's velocity, accounting for drag.

Type: Pure (no side effects)
Category: Fortuna|Physics & Collision
Keywords: physics & collision

Inputs

NameTypeDefaultDescription
CurrentVelocityFVectorCurrentVelocity parameter
WindDirectionFVectorWindDirection parameter
WindStrengthfloatWindStrength parameter
DragCoefficientfloat0.1DragCoefficient parameter
DeltaTimefloatDeltaTime parameter

Outputs

NameTypeDescription
NewVelocityFVectorNewVelocity output

Example Use Cases

Example 1

Arrows affected by wind in an archery game.

Example 2

Leaf or particle physics with wind.