|
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 | | - |
37 | 34 | /** |
38 | 35 | * A provider interface which provides a value {@link BlendSpace#getWeight()} to control the blending between 2 successive actions in a {@link BlendAction}. |
39 | 36 | * 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. |
40 | 37 | * |
41 | | - * <p>Notes about the blending action and its relations with the blending weight:</p> |
| 38 | + * <p> |
| 39 | + * Notes about the blending action and its relations with the blending weight: |
42 | 40 | * <ul> |
43 | 41 | * <li> Blending is the action of mixing between 2 successive animation {@link BlendableAction}s by interpolating their transforms and |
44 | 42 | * then applying the result on the assigned {@link HasLocalTransform} object, the {@link BlendSpace} provides this blending action with a blend weight value. </li> |
45 | 43 | * <li> The blend weight is the value for the interpolation for the target transforms. </li> |
46 | 44 | * <li> The blend weight value must be in this interval [0, 1]. </li> |
47 | 45 | * </ul> |
| 46 | + * </p> |
48 | 47 | * |
49 | | - * <p>Different blending weight case scenarios managed by {@link BlendAction} internally:</p> |
| 48 | + * <p> |
| 49 | + * Different blending weight case scenarios managed by {@link BlendAction} internally: |
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> |
56 | 57 | * |
57 | | - * <p>Notes about the blending weight value:</p> |
| 58 | + * <p> |
| 59 | + * Notes about the blending weight value: |
58 | 60 | * <ul> |
59 | 61 | * <li> Negative values and values greater than 1 aren't allowed (i.e., extrapolations aren't allowed). </li> |
60 | 62 | * <li> For more details, see {@link BlendAction#doInterpolate(double)} and {@link BlendAction#collectTransform(HasLocalTransform, Transform, float, BlendableAction)}. </li> |
61 | 63 | * </ul> |
| 64 | + * </p> |
62 | 65 | * |
63 | 66 | * Created by Nehon. |
64 | 67 | * @see LinearBlendSpace an example of blendspace implementation |
|
0 commit comments