OBJECT_VISUAL_TRANSFORM_LERP_* Constant Group
From NWN Lexicon
Jump to navigationJump to searchUsed by SetObjectVisualTransform to set the interpolate type.
For the main transforming constants see the OBJECT_VISUAL_TRANSFORM page.
Constants
Constant | Value | Lerp Type |
---|---|---|
OBJECT_VISUAL_TRANSFORM_LERP_NONE | 0 | 1 |
OBJECT_VISUAL_TRANSFORM_LERP_LINEAR | 1 | x |
OBJECT_VISUAL_TRANSFORM_LERP_SMOOTHSTEP | 2 | x * x * (3 - 2 * x) |
OBJECT_VISUAL_TRANSFORM_LERP_INVERSE_SMOOTHSTEP | 3 | 0.5 - sin(asin(1.0 - 2.0 * x) / 3.0) |
OBJECT_VISUAL_TRANSFORM_LERP_EASE_IN | 4 | (1 - cosf(x * M_PI * 0.5)) |
OBJECT_VISUAL_TRANSFORM_LERP_EASE_OUT | 5 | sinf(x * M_PI * 0.5) |
OBJECT_VISUAL_TRANSFORM_LERP_QUADRATIC | 6 | x * x |
OBJECT_VISUAL_TRANSFORM_LERP_SMOOTHERSTEP | 7 | (x * x * x * (x * (6.0 * x - 15.0) + 10.0)) |
Version
This constants group was added in 1.83.8193.21 of NWN:EE.
See Also
functions: | GetObjectVisualTransform(), SetObjectVisualTransform() |