Random Positions...

Blitz3D Forums/Blitz3D Programming/Random Positions...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Actually, I have it pick random x,z coords, then do the loop dropping the items from above checking for collisions and if they collide I stop backup .1 and set that for the Y coord. Also checking to ensure that if they fall below 0 to remove them from the level. I know this isn't the most elegant, but I can't really think of any other way to do it. So if anyone has any code examples on how to do it another way I would really appreciate it.

Thanks,

Ken