Skip to content

: delta

Calculate the difference between the value of an expression compared to the last time :delta was called on it. Note: this only works for numeric types, such as int, float, bool, Vector2, Vector3, etc. Values are remembered for up to 10 minutes, to avoid leaking memory

Usage: : delta [OPTIONS] <EXPRESSION>...

Arguments

Name Description Possible values Default
<EXPRESSION> The expression to differentiate. Must be numerical, Vector-like, or Quat

Options

Name Description Possible values Default
-n
--norm
If set, calculate the norm (aka magnitude) of the delta - useful to determine the (angular) speed of an object in any dimension true, false
--dt If set, divides the result by dt (the amount of time since the previous result was calculated). In other words, it will calculate the delta per second instead of per frame true, false