| |
|
| java.lang.Object com.db.hanim.GestureSequence
GestureSequence | public class GestureSequence extends Object (Code) | | This class is to implement a GestureSequence. A GestureSequence is a sequence of actions built out successive gestures. This class is useful when you want a single smooth interpolation between two or more gestures. For example run and leap is a common combination.
author: Silvere Martin-Michiellot version: 1.0, 01 Mar 2000 |
Constructor Summary | |
public | GestureSequence() Constructs a new GestureSequence. |
Method Summary | |
public static BranchGroup | getBranchGroup(Vector vector, long interval) Gets the BranchGroup directly out of the Gesture that is the combination of the successive Gestures of the Vector. | public static BranchGroup | getBranchGroup(Vector vector) Gets the BranchGroup directly out of the Gesture that is the combination of the successive Gestures of the Vector. | public static Gesture | getGesture(Vector vector, long interval) Gets the Gesture that is the combination of the successive Gestures of the Vector. | public static Gesture | getGesture(Vector vector) Gets the Gesture that is the combination of the successive Gestures of the Vector. |
GestureSequence | public GestureSequence()(Code) | | Constructs a new GestureSequence. This class needs only to be instanciated once.
|
getBranchGroup | public static BranchGroup getBranchGroup(Vector vector, long interval)(Code) | | Gets the BranchGroup directly out of the Gesture that is the combination of the successive Gestures of the Vector. You have to set-up and fill your own vector. This vector should contain only Gesture of the same Humanoid and mustn't loop.
Resultant duration is the sum of all Gestures duration times their loop plus the number of gesture minus one times the interval.
Resultant loop will value 1.
The time interval between two consecutive gestures is set to 20ms.
Equivalent to GestureSequence.getGesture(vector).getBranchGroup()
a single Gesture that is the sequence of the consecutive Gestures |
getBranchGroup | public static BranchGroup getBranchGroup(Vector vector)(Code) | | Gets the BranchGroup directly out of the Gesture that is the combination of the successive Gestures of the Vector. You have to set-up and fill your own vector. This vector should contain only Gesture of the same Humanoid and mustn't loop.
Resultant duration is the sum of all Gestures duration times their loop plus the number of gesture minus one times the interval.
Resultant loop will value 1.
The time interval between two consecutive gestures is set to 20ms.
Equivalent to GestureSequence.getGesture(vector).getBranchGroup()
a single Gesture that is the sequence of the consecutive Gestures |
getGesture | public static Gesture getGesture(Vector vector, long interval)(Code) | | Gets the Gesture that is the combination of the successive Gestures of the Vector. You have to set-up and fill your own vector. This vector should contain only Gesture of the same Humanoid and mustn't loop.
Resultant duration is the sum of all Gestures duration times their loop plus the number of gesture minus one times the interval.
Resultant loop will value 1.
Parameters: interval - the time interval between two consecutive gestures a single Gesture that is the sequence of the consecutive Gestures |
getGesture | public static Gesture getGesture(Vector vector)(Code) | | Gets the Gesture that is the combination of the successive Gestures of the Vector. You have to set-up and fill your own vector. This vector should contain only Gesture of the same Humanoid and mustn't loop.
Resultant duration is the sum of all Gestures duration times their loop plus the number of gesture minus one times the interval.
Resultant loop will value 1.
Equivalent to GestureSequence.getGesture(vector).getBranchGroup()
a single Gesture that is the sequence of the consecutive Gestures |
|
|
|