This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing Arc
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 2: | Line 2: | ||
==Code== | ==Code== | ||
− | |||
To place an arc into your map file, the following template is suggested: | To place an arc into your map file, the following template is suggested: | ||
{| | {| | ||
Line 8: | Line 7: | ||
arc | arc | ||
name example_arc | name example_arc | ||
− | divisions 16 | + | divisions 16 # number of subdivisions in the arc |
− | flatshading | + | flatshading # use flat shading. smooth is default. |
− | angle 360 | + | angle 360 # the sweep of the arc. 360 makes a full circle. |
− | ratio 1 | + | ratio 1 # use ratio to make a hollow arc. the parameter is (outrad - inrad) / outrad. |
− | position 0 0 0 | + | position 0 0 0 # the position of the arc (params: x-pos, y-pos, height) |
− | + | size 10 10 10 # the size of the arc (params: width, length, height) | |
− | size 10 10 10 | + | rotation 0 # the angle rotation of the arc. |
− | shift 0 0 0 | + | shift 0 0 0 # shift the arc (repeatable) |
− | shear 0 0 0 | + | shear 0 0 0 # this should be edited. (repeatable) |
− | scale 1 1 1 | + | scale 1 1 1 # the scale of the arc to usual. 1 is default, lower values make it smaller. (repeatable) |
− | spin angle nx ny nz | + | spin angle nx ny nz # rotate the arc around a vector by angle. ONE of nx, ny, and nz should be 1, the others should be 0. (repeatable) |
− | + | phydrv physics_driver_name # apply a physics driver to the arc | |
− | phydrv physics_driver_name | + | smoothbounce # shot bounces use normals |
− | + | matref material # simple way to apply a material to the arc | |
− | + | ||
− | + | ||
− | # | + | |
− | matref | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
end | end | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
==Appearance== | ==Appearance== | ||
− | The arc, by default, has the red brick wall texture on the sides, and the grey | + | The arc, by default, has the red brick wall texture on the sides, and the grey roofs of normal boxes on the top. However, using [[matref]], one can change the appearance of the arc. |
==History== | ==History== | ||
− | The arc object has been supported | + | The arc object has been supported in all BZFlag versions since 2.0.0. In previous versions of BZFlag, this object will not work. |
==Editor Support== | ==Editor Support== | ||
− | Editors that support the arc object include [[Blender]] using the [[BZWTools]], [[Wings3D]], and [[pyBZEdit]]. [[BZEdit]] and [[ | + | Editors that support the arc object include [[Blender]] using the [[BZWTools]], [[Wings3D]] using the [[BZW Exporter for Wings3D]], and [[pyBZEdit]]. [[BZEdit]] and [[BZFedit]] do NOT support the arcs. |
[[Category:Map Making]] | [[Category:Map Making]] | ||
[[Category:Map_Objects]] | [[Category:Map_Objects]] |