public class BlendAction extends BlendableAction
collectTransformDelegate
Constructor and Description |
---|
BlendAction(BlendSpace blendSpace,
BlendableAction... actions) |
Modifier and Type | Method and Description |
---|---|
void |
applyDefaultSpeedFactors()
BlendAction will stretch it's child actions if they don't have the same length.
|
void |
clearSpeedFactors() |
void |
collectTransform(HasLocalTransform target,
Transform t,
float weight,
BlendableAction source) |
void |
doInterpolate(double t) |
protected Action[] |
getActions() |
BlendSpace |
getBlendSpace() |
double |
getSpeed() |
double[] |
getSpeedFactors() |
java.util.Collection<HasLocalTransform> |
getTargets() |
protected void |
setFirstActiveIndex(int index) |
protected void |
setSecondActiveIndex(int index) |
void |
setSpeedFactors(double... speedFactors)
Used to resolve the slow motion side effect caused by stretching actions that
doesn't have the same length.
|
cloneFields, getMaxTransitionWeight, getTransitionLength, getTransitionWeight, getWeight, interpolate, jmeClone, setCollectTransformDelegate, setMaxTransitionWeight, setTransitionLength, setWeight
public BlendAction(BlendSpace blendSpace, BlendableAction... actions)
public void doInterpolate(double t)
doInterpolate
in class BlendableAction
protected Action[] getActions()
public BlendSpace getBlendSpace()
public double[] getSpeedFactors()
public void setSpeedFactors(double... speedFactors)
speedFactors
- The speed factors for each child action. BlendAction will
interpolate factor for current frame based on blend weight
and will multiply it to speed.public void clearSpeedFactors()
public void applyDefaultSpeedFactors()
protected void setFirstActiveIndex(int index)
protected void setSecondActiveIndex(int index)
public java.util.Collection<HasLocalTransform> getTargets()
getTargets
in class BlendableAction
public void collectTransform(HasLocalTransform target, Transform t, float weight, BlendableAction source)
collectTransform
in class BlendableAction