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

Editing Group

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 1: Line 1:
The group object allows a map-maker to bring together a number of elements and refer to them as a single object. The group of elements is created in the [[define]] object and then called by name with the group object.  The group of elements can then be placed, copied, and/or modified as a whole instead of having to re-create separate objects.  Group creates an "instance" of something defined.
+
A group will recall map objects within a define object. It must be used after the define object in question.
  
Unlike most other objects, the group object can come before the definition in the bzw file.  This may help make the bzw file more readable.  
+
Group goes hand-in-hand with the [[define]] object.
  
 
== Code ==
 
== Code ==
Line 9: Line 9:
 
   shift 0 0 0  
 
   shift 0 0 0  
 
   scale 1 1 1
 
   scale 1 1 1
  rotation 0
 
 
   shear 0 0 0
 
   shear 0 0 0
 
   spin 0 0 0 0
 
   spin 0 0 0 0
Line 21: Line 20:
 
|}
 
|}
 
The valid parameters for groups are:
 
The valid parameters for groups are:
{|{{Prettytable}}
+
<properties>
|-
+
shift=Shift the group (repeatable)
| {{Hl3}} |'''Parameter'''
+
scale=Scale the group (repeatable)
| {{Hl3}} |'''Description'''
+
shear=Shear the group (repeatable)
|-
+
spin=Spin the group (repeatable)
| '''shift''' || Shift the group (repeatable).
+
team=Redefine all [[base]] colors within group.
|-
+
tint=Hierarchically tints objects within group.
| '''scale''' || Scale the group (repeatable).
+
drivethrough=Make all objects in group drivethrough.
|-
+
shootthrough=Make all objects in the group shootthrough.
| '''rotation''' || Rotate the group (in degrees).
+
phydrv=Apply [[physics]] to all objects/faces within group.
|-
+
matref=Apply [[material]] to all objects/faces within group.
| '''shear''' || Shear the group (repeatable).
+
</properties>
|-
+
| '''spin''' || Spin the group (repeatable).
+
|-
+
| '''team''' || Redefine all [[base]] colors within group.
+
|-
+
| '''tint''' || Hierarchically tints objects within group.
+
|-
+
| '''drivethrough''' || Make all objects in group drivethrough.
+
|-
+
| '''shootthrough''' || Make all objects in the group shootthrough.
+
|-
+
| '''phydrv''' || Apply [[physics]] to all objects/faces within group.
+
|-
+
| '''matref''' || Apply [[material]] to all objects/faces within group.
+
|}
+
 
+
An in-depth explanation of the 3d-transformations of shift, scale, and shear can be found [http://kapsi.fi/jpa/stuff/bzw/transformations.php here]
+
 
+
 
== Editor Support ==
 
== Editor Support ==
There are currently no supported editors: groups are normally most useful when editing by hand.  
+
There are currently no supported editors: groups are normally most useful when editing by hand.
  
 
==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: