Jelajahi Sumber

Update animation.adoc

Fixed broken new lines.
Changed text tip to Admonition.
mitm001 9 tahun lalu
induk
melakukan
e1de3decf3
1 mengubah file dengan 19 tambahan dan 7 penghapusan
  1. 19 7
      src/docs/asciidoc/jme3/advanced/animation.adoc

+ 19 - 7
src/docs/asciidoc/jme3/advanced/animation.adoc

@@ -103,10 +103,13 @@ a|Gets individual channels by index number. At most `getNumChannels()`.
 a|clearChannels()
 a|Clear all channels in this control.
 
-a|addListener(animEventListener) +removeListener(animEventListener) +clearListeners() 
+a|addListener(animEventListener) +
+removeListener(animEventListener) +
+clearListeners() 
 a|Adds or removes listeners to receive animation related events.
 
 |===
+
 [cols="2", options="header"]
 |===
 
@@ -116,7 +119,8 @@ a|Usage
 a|setAnimations(aniHashMap)
 a|Sets the animations that this AnimControl is capable of playing. The animations must be compatible with the skeleton given in the constructor.
 
-a|addAnim(boneAnim) +removeAnim(boneAnim)
+a|addAnim(boneAnim) +
+removeAnim(boneAnim)
 a|Adds or removes an animation from this Control.
 
 a|getAnimationNames()
@@ -129,6 +133,7 @@ a|getAnimationLength(“anim)
 a|Returns the length of the given named animation in seconds
 
 |===
+
 [cols="2", options="header"]
 |===
 
@@ -207,13 +212,16 @@ a|Usage
 a|addAllBones()
 a|Add all the bones of the model's skeleton to be influenced by this animation channel. (default)
 
-a|addBone(“bone1) +addBone(bone1)
+a|addBone(“bone1) +
+addBone(bone1)
 a|Add a single bone to be influenced by this animation channel.
 
-a|addToRootBone(“bone1) +addToRootBone(bone1) 
+a|addToRootBone(“bone1) +
+addToRootBone(bone1) 
 a|Add a series of bones to be influenced by this animation channel: Add all bones, starting from the given bone, to the root bone.
 
-a|addFromRootBone(“bone1) +addFromRootBone(bone1) 
+a|addFromRootBone(“bone1) +
+addFromRootBone(bone1) 
 a|Add a series of bones to be influenced by this animation channel: Add all bones, starting from the given root bone, going towards the children bones.
 
 |===
@@ -229,11 +237,15 @@ a|Channel Method
 a|Usage
 
 a|channel_walk.setAnim(“Walk,0.50f); 
-a| Start the animation named “Walk on channel channel_walk. +The float value specifies the time how long the animation should overlap with the previous one on this channel. If set to 0f, then no blending will occur and the new animation will be applied instantly.
+a| Start the animation named “Walk on channel channel_walk. +
+The float value specifies the time how long the animation should overlap with the previous one on this channel. If set to 0f, then no blending will occur and the new animation will be applied instantly.
 
 |===
 
-*Tip:* Use the AnimEventLister below to react at the end or start of an animation cycle.
+[TIP]
+====
+Use the AnimEventLister below to react at the end or start of an animation cycle.
+====
 
 
 === Usage Example