i want to rotate PUParticleSystem3D
and found setRotation3D is not working
code as below
any idea?
auto rootps = PUParticleSystem3D::create("weaponTrail.pu");
rootps->setCameraMask((unsigned short)CameraFlag::USER1);
//rootps->setRotation3D(Vec3(0,45,45));
auto rotate = RotateBy::create(0.1f, Vec3(0.0f, 0.0f, 100.0f));
rootps->runAction(RepeatForever::create(Sequence::create(rotate, nullptr)));
this->addChild(rootps, 3 );
rootps->startParticleSystem();