Beispiel #1
0
 public bool HasKeyedFrames(float frame)
 {
     return(XPOS.HasAnimation() && XPOS.GetKeyFrame(frame).IsKeyed ||
            YPOS.HasAnimation() && YPOS.GetKeyFrame(frame).IsKeyed ||
            ZPOS.HasAnimation() && ZPOS.GetKeyFrame(frame).IsKeyed ||
            XROT.HasAnimation() && XROT.GetKeyFrame(frame).IsKeyed ||
            YROT.HasAnimation() && YROT.GetKeyFrame(frame).IsKeyed ||
            ZROT.HasAnimation() && ZROT.GetKeyFrame(frame).IsKeyed ||
            WROT.HasAnimation() && WROT.GetKeyFrame(frame).IsKeyed ||
            XSCA.HasAnimation() && XSCA.GetKeyFrame(frame).IsKeyed ||
            YSCA.HasAnimation() && YSCA.GetKeyFrame(frame).IsKeyed ||
            ZSCA.HasAnimation() && ZSCA.GetKeyFrame(frame).IsKeyed);
 }
Beispiel #2
0
            public Vector3 GetScale(float frame)
            {
                Vector3 sca = new Vector3(1);

                if (XSCA.HasAnimation())
                {
                    sca.X = XSCA.GetValue(frame);
                }
                if (YSCA.HasAnimation())
                {
                    sca.Y = YSCA.GetValue(frame);
                }
                if (ZSCA.HasAnimation())
                {
                    sca.Z = ZSCA.GetValue(frame);
                }

                return(sca);
            }
Beispiel #3
0
            public Vector3 GetPosition(float frame)
            {
                Vector3 pos = new Vector3(0);

                if (XPOS.HasAnimation())
                {
                    pos.X = XPOS.GetValue(frame);
                }
                if (YPOS.HasAnimation())
                {
                    pos.Y = YPOS.GetValue(frame);
                }
                if (ZPOS.HasAnimation())
                {
                    pos.Z = ZPOS.GetValue(frame);
                }

                return(pos);
            }
Beispiel #4
0
            public Quaternion GetRotation(float frame)
            {
                Quaternion rot = new Quaternion();

                if (XROT.HasAnimation())
                {
                    rot.X = XROT.GetValue(frame);
                }
                if (YROT.HasAnimation())
                {
                    rot.Y = YROT.GetValue(frame);
                }
                if (ZROT.HasAnimation())
                {
                    rot.Z = ZROT.GetValue(frame);
                }
                if (WROT.HasAnimation())
                {
                    rot.W = WROT.GetValue(frame);
                }

                return(rot);
            }