Пример #1
0
    // Use this for initialization
    void Start()
    {
        bhv = new BVH(BVHInput.text);

        rt = bhv.getRoot();
        print(rt.name);

        mt = bhv.getMotion();

        buildBody(rt);

        sampleBVH(rt, mt, 0.2f, 25);

        timeFirstKeyFrame = rt.ani.getTime(0);
        timeLastKeyFrame  = rt.ani.getTime(rt.ani.getNumberOfKeyFrames() - 1);
    }