Editing Meshbox

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: Server migration

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 33: Line 33:
  
 
Valid parameters for a meshbox are:
 
Valid parameters for a meshbox are:
{|{{Prettytable}}
+
 
|-
+
;name: defines the name of meshbox, often unused  
| {{Hl3}} |'''Parameter'''
+
;position: defines the position of the meshbox in X-pos, Y-pos and the height of the meshbox in Z.
| {{Hl3}} |'''Description'''
+
;rotation: defines a rotation around the Z axis for the meshbox, in degrees.
|-
+
;size: defines the distance from the center to the side of the meshbox in X and Y, and the total height of the meshbox in Z.
| '''name''' || defines the name of meshbox, often unused.
+
;shift: shift the meshbox (repeatable)
|-
+
;shear: (repeatable)
| '''position''' || defines the position of the meshbox in X-pos, Y-pos and the height of the meshbox in Z.
+
;scale: defines the scale of the meshbox in x,y, and z, 1 is the default, lower values make it smaller (repeatable)
|-
+
;spin angle: rotate the meshbox around a vector by angle. The vector <nx, ny, nz> must be a unit vector.  Because the BZFlag client doesn't clip objects against the ground, it is advisable to ensure that the meshbox is rotated up and away from the ground. Otherwise, the meshbox will appear to be super-imposed on the ground, rather than embedded into it. (repeatable)
| '''rotation''' || defines a rotation around the Z axis for the meshbox, in degrees.
+
;phydrv: reference to a predefined [[physics|physics driver]].
|-
+
;matref: reference to a predefined [[material]].
| '''size''' || defines the distance from the center to the side of the meshbox in X and Y, and the total height of the meshbox in Z.
+
;obstacle: ??
|-
+
 
| '''shift''' || shift the meshbox (repeatable).
+
|-
+
| '''shear''' || (repeatable).
+
|-
+
| '''scale''' || defines the scale of the meshbox in x,y, and z, 1 is the default, lower values make it smaller (repeatable).
+
|-
+
| '''spin angle''' || rotate the meshbox around a vector by angle. The vector <nx, ny, nz> must be a unit vector.  Because the BZFlag client doesn't clip objects against the ground, it is advisable to ensure that the meshbox is rotated up and away from the ground. Otherwise, the meshbox will appear to be super-imposed on the ground, rather than embedded into it. (repeatable).
+
|-
+
| '''phydrv''' || reference to a predefined [[physics|physics driver]].
+
|-
+
| '''matref''' || reference to a predefined [[material]].
+
|-
+
| '''obstacle''' || ??.
+
|}
+
  
 
So what's the difference here? Well, this object will be treated as an obstacle. The outside walls (as opposed to inside, top, or bottom) will appear with the "my_cool_wall" [[material]], and the roof (top) will have "my_cool_roof." Of course, if you want a [[material]] on all sides of the object, you can simply omit the "top" specification at the start of the line, and simply have: "matref my_cool_material." Also, you can specify a [[Physics | physics driver]] to the object, to influence tank behavior a bit.
 
So what's the difference here? Well, this object will be treated as an obstacle. The outside walls (as opposed to inside, top, or bottom) will appear with the "my_cool_wall" [[material]], and the roof (top) will have "my_cool_roof." Of course, if you want a [[material]] on all sides of the object, you can simply omit the "top" specification at the start of the line, and simply have: "matref my_cool_material." Also, you can specify a [[Physics | physics driver]] to the object, to influence tank behavior a bit.
Line 70: Line 56:
  
 
==Editor Support==
 
==Editor Support==
The meshbox IS supported by [[pyBZEdit]], [[Blender]] with the [[BZWTools]] plugin, and [[Wings3D]]. The meshbox is NOT supported by [[BZEdit]], [[IBZEdit]] or [[BZFed]].
+
The meshbox IS supported by [[pyBZEdit]], [[Blender]] with the [[BZWTools]] plugin, and the [[BZW Exporter for Wings3D]]. The meshbox is NOT supported by [[BZEdit]], [[IBZEdit]] or [[BZFed]].
  
 
[[Category:Map Making]]
 
[[Category:Map Making]]
 
[[Category:Map_Objects]]
 
[[Category:Map_Objects]]

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: