Posted By: Why_Do_I_Die
vec_rotate problem - 05/26/06 21:07
This is a pretty noob question , I want to rotate a model around another model using vec rotate , but i cant seem to get the instruction to do anything , here is the code i have for a cube model . the code is straight from the manual , though when i run the level the cube does absolutely nothing , anyone know what i'm missing ?
entity* cube;
var direction[3] = 90, 50, 50;
var angle[3] = 90, 45, 0;
action rotate_cube
{
wait(1);
cube=my;
while(1)
{
vec_rotate(my.pan,angle);
wait(1);
}
}
entity* cube;
var direction[3] = 90, 50, 50;
var angle[3] = 90, 45, 0;
action rotate_cube
{
wait(1);
cube=my;
while(1)
{
vec_rotate(my.pan,angle);
wait(1);
}
}
