Iceman
2002.08.17, 08:56 PM
Hi,
Here's the dowload code:
http://www.geocities.com/jonwhitejamos/laser2.sit
What I'm having trouble with is that when I run laser[j].y -45; It rotates and doesn't work properly with the distance collision:
distance = sqrt(((laser[j].x - xRock) * (laser[j].x - xRock)) + (((laser[j].y - 45) - yRock) *
((laser[j].y - 45) - yRock)));
try the GL_POINTS that I added in the "laserStruct" code to see what I'm talking about.
Thanks,
Iceman
Here's the dowload code:
http://www.geocities.com/jonwhitejamos/laser2.sit
What I'm having trouble with is that when I run laser[j].y -45; It rotates and doesn't work properly with the distance collision:
distance = sqrt(((laser[j].x - xRock) * (laser[j].x - xRock)) + (((laser[j].y - 45) - yRock) *
((laser[j].y - 45) - yRock)));
try the GL_POINTS that I added in the "laserStruct" code to see what I'm talking about.
Thanks,
Iceman