浏览代码

FX2D: rotation in turns

Tom Spira 6 年之前
父节点
当前提交
089f0586d7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/fx/FX2D.hx

+ 1 - 1
hrt/prefab/fx/FX2D.hx

@@ -46,7 +46,7 @@ class FX2DAnimation extends h2d.Object {
 
 			if(anim.rotation != null) {
 				var rotation = evaluator.getVector(anim.rotation, time);
-				anim.obj2d.rotation = rotation.x;
+				anim.obj2d.rotation = rotation.x * (Math.PI / 180.0);
 			}
 
 			if(anim.position != null) {