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 / 3d Grid Placing Blocks

Years of Service
User Offline
Joined: 21st Mar 2003
Posted: 21st Mar 2003 19:45
I was hoping someone could help me with an idea of how to code this. I have a flat plane, and want to be able to place bocks for players to build walls, the block shapes are a X,Z,L,1x1,2x1,4x1 kinda like tetris shapes.
Years of Service
User Offline
Joined: 24th Apr 2003
Posted: 4th May 2003 22:23
first you need to decide on the size of your grid cubes and the number of cubes...say a 10*10*10 3d grid, where each grid cube is 10(or whatever) units wide, then dimension an array like grid(1000,3)
the first dimension to control each grid number, and the next dimension actually shows the x,y,z coords of a grid point. You only need to define one grid point per grid cube. Because since you know your grid cube size you can infer that later on when placing opbjects

to actually store the grid number and coords.. simply loop through the array from 0 to however many grid units you want.

Login to post a reply

Server time is: 2023-12-01 00:33:01
Your offset time is: 2023-12-01 00:33:01