This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing Box
Warning: The database has been locked for maintenance, so you will not be able to save your edits right now. You may wish to copy and paste your text into a text file and save it for later.
The administrator who locked it offered this explanation: Archived wiki
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | A Box is a [[BZW]] map structure that defines a rectilinear | + | A Box is a [[BZW]] map structure that defines a rectilinear parellepiped in the world. |
==Code== | ==Code== | ||
− | [[Image:BoxeAppearance.png| | + | [[Image:BoxeAppearance.png|thumb|399px|right|Default boxes in [[BZFlag_2.2|2.2]]]] |
The code for a box object is as follows | The code for a box object is as follows | ||
{| | {| | ||
Line 13: | Line 13: | ||
|} | |} | ||
Valid parameters for a box are | Valid parameters for a box are | ||
− | + | <properties> | |
− | + | position=defines the center of the box in X and Y and the bottom of the box in Z. | |
− | + | rotation=defines a rotation around the Z axis for the box, in degrees. | |
− | + | size=defines the distance from the center to the side of the box in X and Y, and the total height of the box in Z. | |
− | + | </properties> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | Boxes do not support [[material]], custom textures, or [[Physics_Drivers|physics drivers]]. The [[meshbox]] object replaces the box object and supports all these features and capabilities. | |
==Appearance== | ==Appearance== | ||
Box objects by default have a red brick texture on the vertical sides, and a white plaster texture on the top and bottom. A box of height 0 on ground level ''is'' visible. | Box objects by default have a red brick texture on the vertical sides, and a white plaster texture on the top and bottom. A box of height 0 on ground level ''is'' visible. | ||
− | The texsizes of boxes and boxes made of meshes (e.g. meshbox and box with one of the new properties) | + | The texsizes of boxes and boxes made of meshes (e.g. meshbox and box with one of the new properties) are different. |
+ | |||
+ | {| | ||
+ | |+ | ||
+ | |- texsize | ||
+ | |- Old style boxes | ||
+ | |- -2.0f -2.0f -8.0f -8.0f | ||
+ | |} | ||
{|{{Prettytable}} | {|{{Prettytable}} | ||
Line 84: | Line 48: | ||
|} | |} | ||
− | + | This will cause the textures to scale differently in X and Z axis. Same values will cause textures in Y axis (vertical axis) to scale the same way. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | In [[BZFlag_2.2|BZFlag 2.2]] all 3 type of boxes will use "texsize -8.0f -8.0f -8.0f -8.0f". | |
==History== | ==History== |