This wiki was in read-only mode for many years, but can now be edited again. A lot of information will need to be updated.
Sphere: Difference between revisions
No edit summary  | 
				 →Editor Support:  update  | 
				||
| (7 intermediate revisions by 5 users not shown) | |||
| Line 2: | Line 2: | ||
==Code==  | ==Code==  | ||
[[Image:Sphere.png|right|frame|300px|  | [[Image:Sphere.png|right|frame|300px|Appearance of a simple sphere.]]  | ||
This is a reference of all the options available in a sphere object with parameters.  | |||
{|  | {|  | ||
|  | |  | ||
  sphere  |   sphere  | ||
   name   |    name OBJECT_NAME  | ||
   divisions 4  |    divisions 4  | ||
   flatshading  |    flatshading  | ||
   position   |   hemisphere  | ||
   size   |    position X Y Z  | ||
   radius   |    size X Y Z  | ||
   rotation   |    radius RADIUS  | ||
   shift   |    rotation ANGLE  | ||
   scale   |    shift X Y Z  | ||
   shear   |    scale X Y Z  | ||
   spin   |    shear X Y Z  | ||
   phydrv   |    spin ANGLE NORMAL_X NORMAL_Y NORMAL_Z  | ||
   phydrv PHYSICS_NAME  | |||
   smoothbounce  |    smoothbounce  | ||
   matref   |    matref MATERIAL_NAME  | ||
  end  |   end  | ||
|}  | |}  | ||
Valid   | |||
Valid parameters for a [[sphere]] are:  | |||
name  | {|{{Prettytable}}  | ||
divisions  | |-  | ||
flatshading  | | {{Hl3}} |'''Parameter'''   | ||
position  | | {{Hl3}} |'''Description'''   | ||
size  | |-  | ||
radius  | | '''name''' || defines the name of the sphere, it is not required, and often unused.  | ||
rotation  | |-  | ||
shift  | | '''divisions''' || defines the number of subdivisions (pieces) of the sphere.  | ||
scale  | |-  | ||
shear  | | '''flatshading''' || enables flat shading, smooth shading is the default.  | ||
spin  | |-  | ||
phydrv  | | '''hemisphere''' || only draw the top half of the sphere.  | ||
smoothbounce  | |-  | ||
matref  | | '''position''' || defines the center point of the sphere.  | ||
|-  | |||
| '''size''' || defines the size of the sphere.  | |||
|-  | |||
| '''radius''' || sets all size values to the same value.  | |||
|-  | |||
| '''rotation''' || defines rotation for the sphere.  | |||
|-  | |||
| '''shift''' || shifts the sphere (repeatable).  | |||
|-  | |||
| '''scale''' || scales the sphere (repeatable).  | |||
|-  | |||
| '''shear''' || shears the sphere (repeatable).  | |||
|-  | |||
| '''spin''' || spins the sphere around vector n (repeatable).  | |||
|-  | |||
| '''phydrv''' || attaches a physics driver to the sphere.  | |||
|-  | |||
| '''smoothbounce''' || makes ricochets use normals.  | |||
|-  | |||
| '''matref''' || defines a material for the sphere to use.  | |||
|}  | |||
==Appearance==  | ==Appearance==  | ||
| Line 48: | Line 70: | ||
==Editor Support==  | ==Editor Support==  | ||
Editors that support the sphere object include [[Blender]] using the [[BZWTools]], [[  | Editors that support the sphere object include [[Blender]] using the [[BZWTools]], [[Wings3D]], and [[pyBZEdit]]. [[BZEdit]], [[BZFed]], and [[IBZEdit]] do NOT support the sphere.  | ||
[[Category:Map Making]]  | [[Category:Map Making]]  | ||
[[Category:Map_Objects]]  | [[Category:Map_Objects]]  | ||
Latest revision as of 20:59, 2 February 2017
The sphere is a BZW Object that defines a sphere in the game arena.
Code

This is a reference of all the options available in a sphere object with parameters.
sphere name OBJECT_NAME divisions 4 flatshading hemisphere position X Y Z size X Y Z radius RADIUS rotation ANGLE shift X Y Z scale X Y Z shear X Y Z spin ANGLE NORMAL_X NORMAL_Y NORMAL_Z phydrv PHYSICS_NAME smoothbounce matref MATERIAL_NAME end  | 
Valid parameters for a sphere are:
| Parameter | Description | 
| name | defines the name of the sphere, it is not required, and often unused. | 
| divisions | defines the number of subdivisions (pieces) of the sphere. | 
| flatshading | enables flat shading, smooth shading is the default. | 
| hemisphere | only draw the top half of the sphere. | 
| position | defines the center point of the sphere. | 
| size | defines the size of the sphere. | 
| radius | sets all size values to the same value. | 
| rotation | defines rotation for the sphere. | 
| shift | shifts the sphere (repeatable). | 
| scale | scales the sphere (repeatable). | 
| shear | shears the sphere (repeatable). | 
| spin | spins the sphere around vector n (repeatable). | 
| phydrv | attaches a physics driver to the sphere. | 
| smoothbounce | makes ricochets use normals. | 
| matref | defines a material for the sphere to use. | 
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).
History
The sphere object has been supported since BZFlag 2.0.0. In previous versions of BZFlag, this object will not work.
Editor Support
Editors that support the sphere object include Blender using the BZWTools, Wings3D, and pyBZEdit. BZEdit, BZFed, and IBZEdit do NOT support the sphere.