This wiki is archived and useful information is being migrated to the main bzflag.org website

Editing Box

Jump to: navigation, search

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 2: Line 2:
  
 
==Code==
 
==Code==
[[Image:BoxeAppearance.png|thumbnail|399px|right|Default boxes]]
+
[[Image:BoxeAppearance.png|thumbnail|399px|right|Default boxes in [[BZFlag_3.0|3.0]]]]
 
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
{|{{Prettytable}}
+
 
|-
+
;position: defines the center of the box in X and Y and the bottom of the box in Z.
| {{Hl3}} |'''Parameter'''
+
;rotation: defines a rotation around the Z axis for the box, in degrees.
| {{Hl3}} |'''Description'''
+
;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.
|-
+
| '''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.
+
|}
+
  
 
'''In versions 2.0.8 and older, 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.
 
'''In versions 2.0.8 and older, 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.
 +
 +
'''However, as of June 6, 2006 (SVN revision 13013, version 2.0.9)''', bzfs will convert the box object to a mesh when necessary. This feature allows them to be textured and have physics drivers assigned to them.
  
 
{|
 
{|
Line 42: Line 37:
 
  end
 
  end
 
|}
 
|}
{|{{Prettytable}}
+
 
|-
+
;x+ , x-, y+ , y-, z+, and z-: Assigns a [[material]] to a specific side of the box
| {{Hl3}} |'''Parameter'''
+
;top: Assigns a [[material]] to the top (z ) of the box
| {{Hl3}} |'''Description'''
+
;bottom: Assigns a [[material]] to the bottom (z-) of the box  
|-
+
;sides or outside: Assigns a [[material]] to the x , x-, y , and y- sides of the box
| '''x+ , x-, y+ , y-, z+, and z-''' || Assigns a [[material]] to a specific side of the box.
+
;texsize: Texture sizes, changes how the textures scale on the object.
|-
+
;texoffset: Controls the offset of the texture
| '''top''' || Assigns a [[material]] to the top (z ) of the box.
+
;phydrv: Reference to a predefined [[physics|physics driver]].
|-
+
| '''bottom''' || Assigns a [[material]] to the bottom (z-) of the box.
+
|-
+
| '''sides or outside''' || Assigns a [[material]] to the x , x-, y , and y- sides of the box.
+
|-
+
| '''texsize''' || Texture sizes, changes how the textures scale on the object.
+
|-
+
| '''texoffset''' || Controls the offset of the texture.
+
|-
+
| '''phydrv''' || Reference to a predefined [[physics|physics driver]].
+
|}
+
  
 
More information that needs to be merged into the wiki, as well as the BZW manfile: [http://my.bzflag.org/bb/viewtopic.php?t=8199 Smart Boxes and Pyramids]
 
More information that needs to be merged into the wiki, as well as the BZW manfile: [http://my.bzflag.org/bb/viewtopic.php?t=8199 Smart Boxes and Pyramids]
Line 72: Line 56:
 
|-
 
|-
 
| {{Hl3}} |'''Box type'''  
 
| {{Hl3}} |'''Box type'''  
| {{Hl3}} |'''texsize'''  
+
| {{Hl3}} |'''texsize with quality setting experimental in [[Versions|2.0.x]] and high in [[Versions|2.99]]'''  
 
|-
 
|-
 
|box (old style box)
 
|box (old style box)
Line 100: Line 84:
  
 
This will cause the textures to scale differently for some players in X and Z axis. This can not be solved by adjusting the texsizes in map. The advice is not to mix old style boxes, meshboxes and boxes with one meshbox property, all in the same map.
 
This will cause the textures to scale differently for some players in X and Z axis. This can not be solved by adjusting the texsizes in map. The advice is not to mix old style boxes, meshboxes and boxes with one meshbox property, all in the same map.
 +
 +
 +
In [[BZFlag 3.0]] quality level experimental will become the new level high.
  
 
==History==
 
==History==

Please note that all contributions to BZFlagWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see BZFlagWiki:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Templates used on this page:

Retrieved from "https://wiki.bzflag.org/Box"