OBJECT_VISUAL_TRANSFORM_LERP_* Constant Group

From NWN Lexicon
Revision as of 00:27, 14 March 2021 by Jasperre (talk | contribs) (Created page with "{{DISPLAYTITLE:OBJECT_VISUAL_TRANSFORM_LERP_* Constant Group}}{{NWNEE}}__NOTOC__Used by SetObjectVisualTransform to set the interpolate type. For the main transforming co...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.
Used by SetObjectVisualTransform to set the interpolate type.

For the main transforming constants see the OBJECT_VISUAL_TRANSFORM page.


int OBJECT_VISUAL_TRANSFORM_LERP_NONE = 0; // 1 int OBJECT_VISUAL_TRANSFORM_LERP_LINEAR = 1; // x int OBJECT_VISUAL_TRANSFORM_LERP_SMOOTHSTEP = 2; // x * x * (3 - 2 * x) int OBJECT_VISUAL_TRANSFORM_LERP_INVERSE_SMOOTHSTEP = 3; // 0.5 - sin(asin(1.0 - 2.0 * x) / 3.0) int OBJECT_VISUAL_TRANSFORM_LERP_EASE_IN = 4; // (1 - cosf(x * M_PI * 0.5)) int OBJECT_VISUAL_TRANSFORM_LERP_EASE_OUT = 5; // sinf(x * M_PI * 0.5) int OBJECT_VISUAL_TRANSFORM_LERP_QUADRATIC = 6; // x * x int OBJECT_VISUAL_TRANSFORM_LERP_SMOOTHERSTEP = 7; // (x * x * x * (x * (6.0 * x - 15.0) + 10.0))


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()