Blockland Forums > Modification Help
initContainerBoxSearch units
<< < (5/5)
Demian:
I made the sawblade model face (the sharp end) +Y axis if it helps. (Edit: New model.)
Destiny/Zack0Wack0:
If the X axis is the long bit, then brickSizeX is wrong (it should be 6 and y should be 1). Fix that and then you just need to rotate "3 0.5 2.4" by the brick's angle like I said earlier.


--- Code: ---switch(%brick.getAngleID()) {
case 0:
case 2:
%box = "3 0.5 2.4";
case 1:
case 3:
%box = "0.5 3 2.4";
}

--- End code ---

That should work.
Slicksilver:

--- Quote from: Kalphiter on January 05, 2012, 07:06:06 PM ---What kind of crazy system has Z as not being height?

--- End quote ---
Pretty much every game engine outside of torque. I hate it. Graphs should be XYZ in this format:
Xalos:
X, Y, and Z are in order from easiest to hardest based on continual motion, IMO.

X: If you walk forward it's incredibly easy.
Y: If you walk to the right it's kind've awkward.
Z: If you walk up you're laying on the ground wondering why the forget you did that.


Edit: Oops, bump.
Navigation
Message Index
Previous page

Go to full version