Package com.jme3.anim.tween.action
Class BaseAction
java.lang.Object
com.jme3.anim.tween.action.Action
com.jme3.anim.tween.action.BaseAction
- All Implemented Interfaces:
Tween
,JmeCloneable
,Cloneable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
interpolate
(double t) Sets the implementation specific interpolation to the specified 'tween' value as a value in the range from 0 to getLength().boolean
void
setMask
(AnimationMask mask) void
setMaskPropagationEnabled
(boolean maskPropagationEnabled) Methods inherited from class com.jme3.anim.tween.action.Action
cloneFields, getLength, getMask, getSpeed, isForward, jmeClone, setForward, setLength, setSpeed
-
Constructor Details
-
BaseAction
-
-
Method Details
-
isMaskPropagationEnabled
public boolean isMaskPropagationEnabled()- Returns:
- true if mask propagation to child actions is enabled else returns false
-
setMaskPropagationEnabled
public void setMaskPropagationEnabled(boolean maskPropagationEnabled) - Parameters:
maskPropagationEnabled
- If true, then mask set by AnimLayer will be forwarded to all child actions (Default=true)
-
setMask
-
interpolate
public boolean interpolate(double t) Description copied from interface:Tween
Sets the implementation specific interpolation to the specified 'tween' value as a value in the range from 0 to getLength(). If the value is greater or equal to getLength() then it is internally clamped and the method returns false. If 't' is still in the tween's range then this method returns true.- Parameters:
t
- animation time (in de-scaled seconds)- Returns:
- true if t>length(), otherwise false
-