Skip to content

Math.Slerp

Name Mandatory Description Default Type
⬅️ Input Takes a float value between 0 and 1 representing the interpolation factor. Float
Output ➡️ Outputs a float4 vector representing the interpolated quaternion. Float4
First No The float4 vector representing the first quaternion to interpolate from. none Float4Var(Float4)
Second No The float4 vector representing the second quaternion to interpolate to. none Float4Var(Float4)

This shard performs Spherical Linear Interpolation (SLERP) between two quaternions (represented as float4 vectors). It smoothly interpolates between the quaternions specified in the 'First' parameter and 'Second' parameter based on the input interpolation factor. A float4 vector is a vector with 4 float elements.