Hey there,
I'm stuck with a problem that I can't seem to figure out. I'm trying to set the rotation for newly made boxes and keep ending up with assertion failed errors while running the program.
What kind of values are valid for the localRotation? in my example, rd is varying between -1.55 and +1.55. But even when I set the rotation to a constant value like 0.9f, 1.2f or 2.0f I get assertion failed's at what seems to be random times. If I comment out the localRotation line, I never get any. Can you give me some insight in how to use this correctly? :S Am I doing something else wrong?
Should make a forum for stupid questions. I feel ashamed of making a new post for this..
I'm stuck with a problem that I can't seem to figure out. I'm trying to set the rotation for newly made boxes and keep ending up with assertion failed errors while running the program.
Code:
rd = atan(yd/xd);
printf("%6.4f\n", rd);
tempbox[tempboxcounter].localRotation = rd;
printf("%6.4f\n", rd);
tempbox[tempboxcounter].localRotation = rd;
What kind of values are valid for the localRotation? in my example, rd is varying between -1.55 and +1.55. But even when I set the rotation to a constant value like 0.9f, 1.2f or 2.0f I get assertion failed's at what seems to be random times. If I comment out the localRotation line, I never get any. Can you give me some insight in how to use this correctly? :S Am I doing something else wrong?
Should make a forum for stupid questions. I feel ashamed of making a new post for this..
