Sphere

From BZFlagWiki

Jump to: navigation, search

The sphere is a BZW Object that defines a sphere in the game arena.

Contents

[edit] Code

Sphere Appearance
Sphere Appearance

The code to place a sphere in your map is as follows:

sphere
 name example_sphere
 divisions 4
 flatshading
 position 0 0 10
 size 10 10 10
 radius 10
 rotation 0
 shift 0 0 0
 scale 0 0 0
 shear 0 0 0
 spin angle nx ny nz
 phydrv example_phydrv
 smoothbounce
 matref example_material
end

Valid properties for a sphere are

namedefines the name of the sphere, it is not required, and often unused
divisionsdefines the number of subdivisions (pieces) of the sphere
flatshadingenables flat shading, smooth shading is the default
positiondefines the center point of the sphere
sizedefines the size of the sphere
radiussets all size values to the same value
rotationdefines rotation for the sphere
shiftshifts the sphere (repeatable)
scalescales the sphere (repeatable)
shearshears the sphere (repeatable)
spinspins the sphere around vector n (repeatable)
phydrvattaches a physics driver to the sphere
smoothbouncemakes ricochets use normals
matrefdefines a material for the sphere to use

[edit] Appearance

By default, the sphere is a perfect sphere, with a red brick texture around the outside. You can, however, make the sphere elongated on one side (just don't use the radius option).

[edit] History

The sphere 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 sphere object include Blender using the BZWTools, Wings3D using the BZW Exporter for Wings3D, and pyBZEdit. BZEdit and BZFed do NOT support the sphere.

Personal tools