Blitz unit scale using CreateCube
Blitz3D Forums/Blitz3D Programming/Blitz unit scale using CreateCube
| ||
Hi, can someone remind me - is a default cube created by 'CreateCube' 1 unit or 2 units (or other) high - ie does it relate to a 1 or 2 metre high block - based on the fact that 1 Blitz unit= 1 metre? EDIT: So, for example, sticking 3 default cubes on top of each other makes a stack 3 metres high? I've always thought it was 1 unit high/wide/deep, therefore 1 metre high/wide/deep. However, looking at geometry created by other Blitzers is now confusing me. I'd like to stick to 1 unit= 1 metre. |
| ||
The cube will extend from -1,-1,-1 to +1,+1,+1. http://www.blitzbasic.co.nz/b3ddocs/command.php?name=CreateCube&ref=3d_cat IMO it's 2*2*2 units then by default.. ie more largeness than you thought (just had to ;P). |
| ||
Yeh could be, I was wondering that - which is why I said is it 1 or 2 units. I wanted to be sure. So, by the above, I am taking it that the cube is actually 2 metres high/wide/deep. Anyone have any other opinions? In the meantime - I have a bit of scaling to do. |
| ||
Yes, cubes are 2x2x2 (-1,-1,-1) to (1,1,1). Sphere's are radius 1 too. |
| ||
Two. Origin is at 0,0,0. |