如何在Vega prime中为对象添加运动? [英] How to add motion to the object in Vega prime ?

查看:101
本文介绍了如何在Vega prime中为对象添加运动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你是vega prime的新手。我想为对象添加动作.plz给我任何提示或任何示例帮助我

i试过这可以帮助我运动这个对象给出下面的代码帮助我



hi am new to vega prime .i want to add motion to the object .plz give me any hint or any example help me
i was tried this can u help me motion for this object given in code below help me

// the main application class.
class myApp : public vpApp
  {

public:

    /*
      Constructor
     */
    myApp()
    {

    }

    /**
     * Destructor
     */
    ~myApp()
    {
        // unreference member variables which cache Vega Prime class instances

    }
    int configure()
    {

        // pre-configuration

        // configure vega prime system first

        vpApp::configure();

        //vsgu::SUCCESS


        return 0;


    }


           public:
  void createobject()
    {
             vpObject *m_espirit;
             m_espirit=new vpObject;
             m_espirit->setFileName("C:\\Presagis\\Vega_Prime_3\\resources\\data\\models\\esprit\\esprit.flt");
             m_espirit->setPosition(-835,-865,55);
         m_espirit->setScale(5,5,5);
         m_espirit->setOrientation(-43,0,0);
             vpScene *myScene=vpScene::find("myScene");
             myScene->addChild(m_espirit);

    }
    };
int main(int argc, char *argv[])
{
    // initialize vega prime
    vp::initialize(argc, argv);

    // create my app instance
    myApp *app = new myApp;

    // load acf file
    if (argc <= 1)
        app->define("Nokiaacf.acf");
    else
        app->define(argv[1]);

    // configure my app
    app->configure();

    //calling function
    app->createobject();


    // runtime loop
    app->run();

    // unref my app instance
    app->unref();

    // shutdown vega prime
    vp::shutdown();

    return 0;
}

推荐答案

参见 http://www.presagis.com/products_services/products/modeling-simulation/visualization/vega_prime/ [ ^ ]。


这篇关于如何在Vega prime中为对象添加运动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆