Particle Universe. Set/Change position

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
ENGine
Goblin
Posts: 266
Joined: Fri Jan 27, 2006 9:13 pm
Location: Belarus
x 2
Contact:

Particle Universe. Set/Change position

Post by ENGine »

Hi, all.

There is simple *.pu, from the standard pack of Particle Universe 1.6:

Code: Select all

system woosh
{
    tight_bounding_box                          true
    technique 
    {
       
        visual_particle_quota                   1
        material                                PUMediaPack/Ring_14
        default_particle_width                  40
        default_particle_height                 40
        renderer                                Billboard
        {
            billboard_type                      perpendicular_common
            common_direction                    0 1 0
            common_up_vector                    0 0 1
        }
        emitter                                 Point wooshEmitter
        {
            emission_rate                       1
            time_to_live                        1
            direction                           0 0 0
            position                            0 0 0
            force_emission                      true
        }
        affector                                Scale 
        {
            xyz_scale                           30
        }
        affector                                Colour 
        {
            time_colour                         0    1 1 1 1
            time_colour                         1    0 0 0 0
            colour_operation                    multiply
        }
        observer                                OnClear
        {
            handler                             DoStopSystem
            {
            }
        }
    }
}

I just need to attach this particle to PlayerSceneNode.
I tried to do it in the following ways:
1) playerSceneNode->attachObject(pSys1);
2) In renderStarted { ... pSys1->getTechnique(0)->setPosition(); }

But it's unsuccessfully. What is wrong? Thanks.
Post Reply