here is the code for when i shoot.
Code: Select all
bill2.setVisible(true);
bill2.setPosition(intersection);
IParticleSystemSceneNode parts = smgr.addParticleSystemSceneNode(false);
parts.setPosition(bill2.getPosition());
parts.setParticleSize(new dimension2df(30,30));
IParticleEmitter emit = parts.createPointEmitter(camera.getRotation().timesOperator(-1f), 20, 50, new SColor(0, 225,0,0), new SColor(0, 0,225,0), 10, 20 );
parts.setEmitter(emit);