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

Difference between revisions of "Group"

From BZFlagWiki
Jump to: navigation, search
(And Groups)
 
m (Code: oops)
Line 20: Line 20:
  
 
'''Shift''': Shift the group (repeatable)
 
'''Shift''': Shift the group (repeatable)
 +
 
'''Scale''': Scale the group (repeatable)
 
'''Scale''': Scale the group (repeatable)
 +
 
'''Shear''': Shear the group (repeatable)
 
'''Shear''': Shear the group (repeatable)
 +
 
'''Spin''': Spin the group (repeatable)
 
'''Spin''': Spin the group (repeatable)
 +
 
'''team''': Redefine all [[base]] colors within group.
 
'''team''': Redefine all [[base]] colors within group.
 +
 
'''tint''': Hierarchically tints objects within group.
 
'''tint''': Hierarchically tints objects within group.
 +
 
'''drivethrough''': Make all objects in group drivethrough.
 
'''drivethrough''': Make all objects in group drivethrough.
 +
 
'''shootthrough''': Make all objects in the group shootthrough.
 
'''shootthrough''': Make all objects in the group shootthrough.
 +
 
'''phydrv''': Apply [[physics]] to all objects/faces within group.
 
'''phydrv''': Apply [[physics]] to all objects/faces within group.
 +
 
'''matref''': Apply [[material]] to all objects/faces within group.
 
'''matref''': Apply [[material]] to all objects/faces within group.
  

Revision as of 14:18, 10 March 2007

A group will recall map objects within a define obect. I must be used after the define object in question.

Group goes hand-in-hand with the define object.

Code

group my_group
  shift 0 0 0 
  scale 1 1 1
  shear 0 0 0
  spin 0 0 0 0
  team 0
  tint 1 1 1 1
  drivethrough
  shootthrough
  phydrv my_phydrv
  matref my_material
end

The valid parameters for groups are:

Shift: Shift the group (repeatable)

Scale: Scale the group (repeatable)

Shear: Shear the group (repeatable)

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.

Editor Support

There are currently no supported editors: groups are normally most useful when editing by hand.

History

The group definition object was added with the v2.0.0 release of BZFlag.