flore33
12-04-2009, 11:25 AM
script1
vector $pos =particleShape1.position;
float $posY = ($pos.x)*($pos.x) + ($pos.z)*($pos.z);
particleShape1.position = <<$pos.x, $posY, $pos.z>>;
script2
vector $pos =particleShape1.position;
float $posX=$pos.x;
float $posY=$pos.y;
float $posZ=$pos.z;
float $posY = ($pos.x)*($pos.x) + ($pos.z)*($pos.z);
$pos = <<$pos.x, $posY, $pos.z>>;
this 2 scripts don't return the same particle motion, but I don't get why, I can see from this testing that
vector $pos =particleShape1.position; is different from
particleShape1.position =vector $pos;
but I don't understand why. Could someone help me to understand the difference.
This will be very helpful. Thanks
vector $pos =particleShape1.position;
float $posY = ($pos.x)*($pos.x) + ($pos.z)*($pos.z);
particleShape1.position = <<$pos.x, $posY, $pos.z>>;
script2
vector $pos =particleShape1.position;
float $posX=$pos.x;
float $posY=$pos.y;
float $posZ=$pos.z;
float $posY = ($pos.x)*($pos.x) + ($pos.z)*($pos.z);
$pos = <<$pos.x, $posY, $pos.z>>;
this 2 scripts don't return the same particle motion, but I don't get why, I can see from this testing that
vector $pos =particleShape1.position; is different from
particleShape1.position =vector $pos;
but I don't understand why. Could someone help me to understand the difference.
This will be very helpful. Thanks
