This wiki is archived and useful information is being migrated to the main bzflag.org website
Editing Sphere
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== | ||
− | [[Image:Sphere.png|right|frame|300px|Appearance | + | [[Image:Sphere.png|right|frame|300px|Sphere Appearance]] |
− | + | The code to place a sphere in your map is as follows: | |
− | + | ||
{| | {| | ||
| | | | ||
sphere | sphere | ||
− | name | + | name example_sphere |
divisions 4 | divisions 4 | ||
flatshading | flatshading | ||
− | + | position 0 0 10 | |
− | position | + | size 10 10 10 |
− | size | + | radius 10 |
− | radius | + | rotation 0 |
− | rotation | + | shift 0 0 0 |
− | shift | + | scale 0 0 0 |
− | scale | + | shear 0 0 0 |
− | shear | + | spin angle nx ny nz |
− | spin | + | phydrv example_phydrv |
− | phydrv | + | |
smoothbounce | smoothbounce | ||
− | matref | + | matref example_material |
end | end | ||
|} | |} | ||
− | + | Valid properties for a [[sphere]] are | |
− | Valid | + | <properties> |
− | + | 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 | |
− | + | 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 | |
− | + | </properties> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
==Appearance== | ==Appearance== | ||
Line 70: | Line 48: | ||
==Editor Support== | ==Editor Support== | ||
− | Editors that support the sphere object include [[Blender]] using the [[BZWTools]], [[Wings3D]], and [[pyBZEdit]]. [[BZEdit]] | + | 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. |
[[Category:Map Making]] | [[Category:Map Making]] | ||
[[Category:Map_Objects]] | [[Category:Map_Objects]] |