How do I calculate an entity's velocity if I want to push it in a direction with given angles? FF2 partially has the answer but not for the Z velocity:
PHP Code:
velocity[0]+=Cosine(DegToRad(angles[0]))*Cosine(DegToRad(angles[1]))*500*multiplier;
velocity[1]+=Cosine(DegToRad(angles[0]))*Sine(DegToRad(angles[1]))*500*multiplier;
velocity[2]=(750.0+175.0*charge/70+2000)*multiplier;