Exemple #1
0
        public void StartAnimation(animType_LOL type)
        {
            animState_t res;

            res.startframe = animlist[(int)type].first_frame;
            res.endframe   = animlist[(int)type].last_frame;
            res.curr_frame = animlist[(int)type].first_frame;
            res.next_frame = animlist[(int)type].first_frame + 1;

            res.fps  = animlist[(int)type].fps;
            res.type = type;

            res.curr_time = 0.0f;
            res.old_time  = 0.0f;

            res.interpol = 0.0f;

            animSt         = res;
            AnimationSpeed = 0.01f;
            Loop           = true;
            currframe      = animSt.curr_frame;
            oldframe       = currframe;
        }
Exemple #2
0
 public List <vec3> GetCurrentVertices(animState_t animState)
 {
     return(vVertices[animState.curr_frame]);
 }