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.

AppGameKit Classic Chat / Tier 1 -- I figured how to convert a box into a collection of smaller boxes!

Author
Message
basicFanatic
7
Years of Service
User Offline
Joined: 7th Jun 2017
Location:
Posted: 3rd Jun 2019 20:58


I made a code that take a box object, looks at its XYZ proportions, calculate how many boxes of whatever size it could store, inserts those boxes and deletes the original cube!

Quite primitive, but it works. I consider making it recursive: after a given time, the cubes themselves will spill into smaller parts.

Keyboard shortcuts:
A Spawn cube
S Split cube (do it when in air to see stuff explode)
Ctrl+W Quit

Attachments

Login to view attachments
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 4th Jun 2019 00:39
Very cool. Nice work!

Login to post a reply

Server time is: 2024-11-22 21:20:37
Your offset time is: 2024-11-22 21:20:37