用户工具

站点工具


编程:cpp:irrlicht:粒子重力

给粒子添加重力

      auto aff=particles->createGravityAffector(//创建重力对象
        core::vector3df(0.0f,-0.7f, 0.0f),//设置重力方向
        timeForceLost//对每个粒子施力持续时间
      );
      particles->addAffector(aff);//添加重力
      aff->drop();
编程/cpp/irrlicht/粒子重力.txt · 最后更改: 2019/08/06 17:27 由 cgoxopx