I am mainly a 2D guy, but I am trying to play around with the 3D examples in GLBasic to try and learn. The 3D Maze example will not compile, it kicks up the error:
GPC - GLBasic Precompiler V.2008.210 - 3D, NET
"3DMaze.gbas"(84) error : wrong number or aguments : "X_COLLISIONAABB" called with 7 args. Required: 8 to 8
I am not smart enough at 3D to figure out what parameter is not included. I have not changed the example code in any way.
That command is doing a collision check with a box, it seems the last size is missing so I just put in ", sz/4" and that worked for me. sz is the size of one block so one quarter of that should be fine as the players width :-)
The whole command ended up like this:
IF X_COLLISIONAABB(0,0,ply_x, sz/2, ply_y, sz/4, sz/2, sz/4)
Yes, and the X_MIPMAPPING TRUE should be somewhere near the X_MAKE3D
Thank you.