SuggestProjectileVelocity Custom Arc

SuggestProjectileVelocity Custom Arc

Windows
MacOS
Linux

Returns the launch velocity needed for a projectile at rest at StartPos to land on EndPos. Assumes a medium arc (e.g. 45 deg on level ground). Projectile velocity is variable and unconstrained. Does no tracing.

Target is Gameplay Statics

SuggestProjectileVelocity Custom Arc
Start Pos
X0
Y 0
Z 0
End Pos
X0
Y 0
Z 0
Override Gravity Z
0.000000
Arc Param
0.500000
Out Launch Velocity
X0
Y 0
Z 0
Return Value

Inputs

In
Exec
Start Pos
Vector

Start position of the simulation

End Pos
Vector

Desired end location for the simulation

Override Gravity Z
Float

Optional override of WorldGravityZ

Arc Param
Float

Change height of arc between 0.0-1.0 where 0.5 is the default medium arc, 0 is up, and 1 is directly toward EndPos.

Outputs

Out
Exec
Out Launch Velocity
Vector

Returns the launch velocity required to reach the EndPos

Return Value
Boolean
Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss