Warudo
评价数不足
Extra Maths Nodes
   
奖励
收藏
已收藏
取消收藏
类型: 插件
文件大小
发表于
27.631 KB
2024 年 2 月 16 日 下午 12:10
1 项改动说明 ( 查看 )

订阅以下载
Extra Maths Nodes

描述
This plugin just converts 16 Mathf methods from the unity scripting API documentation to work inside unity, it does not include things like Sin, Acos etc. as those can be used already by using the math expression node.
This plugin includes:
- Approximately - Compares two floating point values and returns true if they are similar. i.e. if 1 is equal to 0.5 with an error tolerance of 0.5 then the output is true.
- Degrees conversion - converts a given value into degrees or radians.
- Pi - just outputs PI
- Delta Angle - Calculates the shortest difference between two given angles given in degrees.
- Infinity - outputs a representation of infinity and negative infinity
- Correlated Color Temp to RGB - Convert a color temperature in Kelvin to RGB color.
- Closest Power Of Two - Returns the closest power of two value.
- Next Power Of Two - Returns the next power of two that is equal to, or greater than, the argument.
- Linear To Gamma Space - Converts the given value from linear to gamma (sRGB) color space.
- Gamma To Linear Space - Converts the given value from gamma (sRGB) to linear color space.
- Perlin Noise - Generate 2D Perlin noise.
- float lerp - Linearly interpolates between a and b by t.
- Inverse Lerp - Determines where a value lies between two points.
- Lerp Angle - Same as Lerp but makes sure the values interpolate correctly when they wrap around 360 degrees.
- Move Towards - Moves a value current towards target.
- Move Towards Angle - Same as MoveTowards but makes sure the values interpolate correctly when they wrap around 360 degrees.