Arc

From BZFlagWiki

Jump to: navigation, search

The arc object is a BZW object that defines an arc or cylinder in the game arena.

Contents

[edit] Code

Appearance of an arc with solid color materials. The words show the names used to map materials to various sides. Obviously, the bottom matref is not shown.
Appearance of an arc with solid color materials. The words show the names used to map materials to various sides. Obviously, the bottom matref is not shown.

To place an arc into your map file, the following template is suggested:

arc
 name example_arc
 divisions 16
 flatshading
 angle 360
 ratio 1
 position 0 0 0
 rotation 0
 size 10 10 10
 shift 0 0 0
 shear 0 0 0
 scale 1 1 1
 spin angle nx ny nz
 texsize -2.0 -2.0 -8.0 -8.0
 phydrv physics_driver_name
 smoothbounce
 
 ## You can give the entire arc a single material with the lone 'matref' property, 
 ## or you can give different parts different materials, as shown below
 matref material0
 top matref material1
 bottom matref material2
 inside matref material3
 outside matref material4
 startside matref material5
 endside matref material6
end

Valid parameters for an arc are

namedefines the name of arc, often unused
divisionsdefines the number of subdivisions in the arc
flatshadingdefines the use of flat shading, smooth is the default
angledefines the sweep of the arc, 360 indicates a full circle
ratiodefines the ratio to make a hollow arc, the parameter is (outrad - inrad) / outrad.
positiondefines the position of the arc in X-pos, Y-pos and the height of the arc in Z.
rotationdefines a rotation around the Z axis for the arc, in degrees.
sizedefines the distance from the center to the side of the arc in X and Y, and the total height of the arc in Z.
shiftshift the arc (repeatable)
shear(repeatable)
scaledefines the scale of the arc in x,y, and z, 1 is the default, lower values make it smaller (repeatable)
spin anglerotate the arc around a vector by angle. ONE of nx, ny, and nz should be 1, the others should be 0. (repeatable)
texsizetexture sizes, changes how the textures scale on the object. In 2.0.x standard boxes have "texsize -2.0 -2.0 -8.0 -8.0", in 3.0 boxes will have "texsize -8.0 -8.0 -8.0 -8.0" so choose the appropriate texsize if you want the arc(s) match the box(es) exact look.
phydrvreference to a predefined physics driver.
smoothbouncedefines that shot bounces use normals
matrefreference to a predefined material.

[edit] Appearance

The arc, by default, has the red brick wall texture on the sides, and the grey roof appearance of a normal box on the top. However, using matref one can change the appearance of the arc.

[edit] History

The arc object has been supported since BZFlag 2.0.0. In previous versions of BZFlag, this object will not work.

[edit] Editor Support

Editors that support the arc object include Blender using the BZWTools, Wings3D using the BZW Exporter for Wings3D, and pyBZEdit. BZEdit and BZFed do NOT support the arcs.

Retrieved from "http://my.bzflag.org/w/Arc"
Personal tools