瀏覽代碼

Action: publicize the setLength() method (#1489)

Stephen Gold 4 年之前
父節點
當前提交
458e52987f
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      jme3-core/src/main/java/com/jme3/anim/tween/action/Action.java

+ 7 - 1
jme3-core/src/main/java/com/jme3/anim/tween/action/Action.java

@@ -30,7 +30,13 @@ public abstract class Action implements JmeCloneable, Tween {
         return length;
         return length;
     }
     }
 
 
-    protected void setLength(double length) {
+    /**
+     * Alter the length (duration) of this Action.  This can be used to extend
+     * or truncate an Action.
+     *
+     * @param length the desired length (in unscaled seconds, default=0)
+     */
+    public void setLength(double length) {
         this.length = length;
         this.length = length;
     }
     }