「Unity3D」MojoUnity-Shake:使用PerlinNoise实现Unity通用的震动(抖动)特效工具

MojoUnity-Shake是一个动画工具,可以效果逼真地抖动float vector2 vector3类型的数值。它使用协程实现了SmoothPerlinNoise算法,并且扩展了Transform,可以一行代码完成Position Scale Rotation的抖动动画。

功能特点:

  • 两种高效算法实现,抖动效果丝滑。
  • 一行代码简单使用。
  • 可以自由扩展,实现任何组件对象的属性抖动效果。
  • 使用了BurstCompile优化。

支持Unity 2018及以上版本。

使用示例

Position XYZ 抖动效果
Position XYZ 抖动效果
Scale XYZ 抖动效果
Scale XYZ 抖动效果
Rotation XYZ 抖动效果
Rotation XYZ 抖动效果

开源代码

Github:MojoUnity-Shake

猜你喜欢

转载自blog.csdn.net/tom_221x/article/details/116071934