Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Collision detection mishap

Author
Message
Oberon
21
Years of Service
User Offline
Joined: 31st Mar 2003
Location:
Posted: 1st Apr 2003 04:33
I have a collision detection problem: In my prog I have 3 nested for loops. In the central loop I have a OBJECT HIT(Obj num,0) command that triggers an IF block to increment a counter. The three nested loops cycle some coords for a test object, which I test against other objects.

My problem is that if the collision detection should come out non-zero on two consecutive loops, the second one always fails. Here is the code:



Sorry about the mess with rems and so on - I've been debugging but have got nowhere.

I have programmed before, but this escapes me.

If it helps, the code is part of the neighbour counting function for a 3d cellular automata prog, alias LIFE.

Login to post a reply

Server time is: 2024-05-11 21:08:42
Your offset time is: 2024-05-11 21:08:42