Dr.Spangle
09-01-2004, 12:50 PM
// Causing highly accurate weapons to only be non 0 occasionally.
%mat = MatrixCreateFromEuler(%x* 10 @ " " @ %y*10 @ " " @ %z*10);
%vector = MatrixMulVector(%mat2, %vector);
As the title of this thread implies, I appear to be running into some kind of rounding error in the function MatrixCreateFromEuler(). What I am attempting to do is create a sniper rifle which is highly accurate, but not COMPLETELY 100% accurate. From what I can tell, I need a "matrix" type object to turn into a "vector" object in order to spawn the projectile that I want to use. Whenever I do this, however, I'm getting perfectly accurate projectiles.
Suggestions? Did I not explain myself well enough? Please, let me know.
%mat = MatrixCreateFromEuler(%x* 10 @ " " @ %y*10 @ " " @ %z*10);
%vector = MatrixMulVector(%mat2, %vector);
As the title of this thread implies, I appear to be running into some kind of rounding error in the function MatrixCreateFromEuler(). What I am attempting to do is create a sniper rifle which is highly accurate, but not COMPLETELY 100% accurate. From what I can tell, I need a "matrix" type object to turn into a "vector" object in order to spawn the projectile that I want to use. Whenever I do this, however, I'm getting perfectly accurate projectiles.
Suggestions? Did I not explain myself well enough? Please, let me know.