Included: Scripts, Test Object, Test Room
Add Vector Math To GM Studio!
Vector variable type and supporting functions like add, mult, cross product, dot, and much more!
tmc_vect2, tmc_vect3, tmc_vect4
You can now convert commonly found vector math examples from all over the web for your game.
//bounce = -2*(V dot N)*N + V var V = tmc_vect3(hspeed,vspeed,zspeed); var N = tmc_vect_norm(tmc_vect3(x-other.x,y-other.y,z-other.z)); varVdN2=-2*tmc_vect_dot(V,N); varVdN2N= tmc_vect_multr(N,VdN2); varFinal= tmc_vect_add(VdN2N,V); hspeed =Final; //x vspeed =Final; //y zspeed =Final; //z