PHP: // This is looped 20 times per second wile $this->lastRadius is equal to $this->radius (100)$r = $this->lastRadius;$pitch = $this->angle[0];$yaw = $this->angle[1];$x = -sin($yaw / 180 * M_PI) * cos($pitch / 180 * M_PI) * $r;$y = -sin($pitch / 180 * M_PI) * $r;$z = cos($yaw / 180 * M_PI) * cos($pitch / 180 * M_PI) * $r;echo 'X: '.$x."\n";echo 'Y: '.$y."\n";echo 'Z: '.$z."\n";echo 'Radius:'.$r."\n";echo 'Pitch: '.$pitch."\n";echo 'Yaw: '.$yaw."\n";echo "______";$particle = new DustParticle($this->pos->add($x, $y, $z), $this->color[0], $this->color[1], $this->color[2]);$this->pos->level->addParticle($particle);$r++;$this->lastRadius = $r; But the rocket (particles) are launched chaotic