Thread: expression help
View Single Post
# 1 14-04-2003 , 09:43 PM
Registered User
Join Date: Jun 2002
Location: Scotland
Posts: 129

expression help

im getting a syntax error with this code and cant find the problem, can someone see if they can spot the error.

vector $pos = particleExplosionShape.position;
if (0.05*$pos.z > 1.0)
particleExplosionShape.radiusPP = 0.05*$pos.z;
float $DTOR = 0.01745
if ((particleExplosionShape.lifespanPP ñ particleExplosionShape.age ) < 1.5)
{
float $theta = 5.0*$DTOR;
vector $vel = particleExplosionShape.velocity;
vector $tmp = <<$vel.x,$vel.y,$vel.z-0.001>>;
vector $axis = cross($vel,$tmp);
vector $new = rot($vel,$axis,$theta);
particleExplosionShape.velocity = $new;
}