|
31 | 31 | */ |
32 | 32 | package com.jme3.anim.tween.action; |
33 | 33 |
|
| 34 | +import com.jme3.anim.util.HasLocalTransform; |
| 35 | +import com.jme3.math.Transform; |
| 36 | + |
34 | 37 | /** |
35 | 38 | * A provider interface which provides a value {@link BlendSpace#getWeight()} to control the blending between 2 successive actions in a {@link BlendAction}. |
36 | 39 | * The blending weight is a read-only value, and it can be manipulated using the arbitrary value {@link BlendSpace#setValue(float)} during the application runtime. |
37 | 40 | * |
38 | | - * <p> |
39 | | - * Notes about the blending action and its relations with the blending weight: |
| 41 | + * <p>Notes about the blending action and its relations with the blending weight:</p> |
40 | 42 | * <ul> |
41 | 43 | * <li> Blending is the action of mixing between 2 successive animation {@link BlendableAction}s by interpolating their transforms and |
42 | 44 | * then applying the result on the assigned {@link HasLocalTransform} object, the {@link BlendSpace} provides this blending action with a blend weight value. </li> |
43 | 45 | * <li> The blend weight is the value for the interpolation for the target transforms. </li> |
44 | 46 | * <li> The blend weight value must be in this interval [0, 1]. </li> |
45 | 47 | * </ul> |
46 | | - * </p> |
47 | 48 | * |
48 | | - * <p> |
49 | | - * Different blending weight case scenarios managed by {@link BlendAction} internally: |
| 49 | + * <p>Different blending weight case scenarios managed by {@link BlendAction} internally:</p> |
50 | 50 | * <ul> |
51 | | - * <li> In case of (0 < Blending weight < 1), the blending is executed each update among 2 actions, the first action will use |
| 51 | + * <li> In case of (0 < Blending weight < 1), the blending is executed each update among 2 actions, the first action will use |
52 | 52 | * a blend value of 1 and the second action will use the blend space weight as a value for the interpolation. </li> |
53 | 53 | * <li> In case of (Blending weight = 0), the blending hasn't started yet, only the first action will be interpolated at (weight = 1). </li> |
54 | 54 | * <li> In case of (Blending weight = 1), the blending is finished and only the second action will continue to run at (weight = 1). </li> |
55 | 55 | * </ul> |
56 | | - * </p> |
57 | 56 | * |
58 | | - * <p> |
59 | | - * Notes about the blending weight value: |
| 57 | + * <p>Notes about the blending weight value:</p> |
60 | 58 | * <ul> |
61 | 59 | * <li> Negative values and values greater than 1 aren't allowed (i.e., extrapolations aren't allowed). </li> |
62 | 60 | * <li> For more details, see {@link BlendAction#doInterpolate(double)} and {@link BlendAction#collectTransform(HasLocalTransform, Transform, float, BlendableAction)}. </li> |
63 | 61 | * </ul> |
64 | | - * </p> |
65 | 62 | * |
66 | 63 | * Created by Nehon. |
67 | 64 | * @see LinearBlendSpace an example of blendspace implementation |
|
0 commit comments