Skip to content

Curves

Curve assets store animation or gameplay data as interpolated keyframe sequences. BlueprintAI supports float curves, vector curves, and color curves.

Create a float curve called CRV_DamageFalloff in /Game/Data Create a vector curve called CRV_CameraShake in /Game/Camera Create a color curve called CRV_DayNightTint in /Game/Lighting

Add a key at time 0.0 with value 1.0 to CRV_DamageFalloff Add a key at time 1.0 with value 0.0 Add a key at time 0.5 with value 0.6

Keys define the shape of the curve. Interpolation between keys is handled by the engine (linear, cubic, constant, etc.).

Set all keys on CRV_DamageFalloff to cubic interpolation Set the key at time 0.5 to constant interpolation

Interpolation modes: Linear, Constant, CubicAuto, CubicUser, CubicBreak.

Set the arrive tangent of the key at time 0.5 to 0.0 and the leave tangent to -1.5

Custom tangents give you precise control over curve shape.

What is the value of CRV_DamageFalloff at time 0.75?

The AI can evaluate a curve at any time value and report back, useful for verifying the curve shape before using it in gameplay.