public class MrFrame
extends java.lang.Object
MrSkeletalAction
Constructor and Description |
---|
MrFrame(int number)
Creates the frame number
|
Modifier and Type | Method and Description |
---|---|
void |
addBone(MrBone bone)
Adds a bone affected by this frame
|
java.util.Map<java.lang.String,MrBone> |
getBones()
Gets the bone map of this bone
|
int |
getFrameNumber()
Gets the frame number
|
static void |
interpolate(MrFrame frame,
int numFrame,
MrFrame frame1,
MrFrame frame2)
Interpolates two frames
|
void |
setNumber(int number)
Sets the frame number
|
public MrFrame(int number)
number
- Frame numberpublic static void interpolate(MrFrame frame, int numFrame, MrFrame frame1, MrFrame frame2)
frame
- Result frame. The frame number and bones will be overridennumFrame
- Number of the result frame. It requires frame1.numFrame < numFrame < frame2.numFrameframe1
- The first frame.frame2
- The second framepublic int getFrameNumber()
public void setNumber(int number)
number
- public java.util.Map<java.lang.String,MrBone> getBones()
public void addBone(MrBone bone)
bone
-