Difference between revisions of "Meshpyr"

From BZFlagWiki
Jump to: navigation, search
(Appearance: added wiki table)
 
(10 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
[[Image:MeshpyrAppearance.jpg|right|thumb|400px|Several meshpyr, with the one in the middle having the default texture]]
 
[[Image:MeshpyrAppearance.jpg|right|thumb|400px|Several meshpyr, with the one in the middle having the default texture]]
A meshpyr is a [[BZW]] map object that constructs a specialized [[mesh|Mesh]] has the geometric appearance of a [[Pyramid]]. It replaces the [[pyramid]] object as of [[BZFlag 2.0.0|v2.0.0]] and is compatible with [[material|materials]] and [[physics|physics drivers]].
+
A meshpyr is a [[BZW]] map object that constructs a specialized [[Mesh|mesh]] that has the geometric appearance of a [[Pyramid]]. It replaces the [[pyramid]] object as of [[BZFlag 2.0.0|v2.0.0]] and is compatible with [[material|materials]] and [[physics|physics drivers]].
  
==Code==
+
 
The code for a meshpyr object is as follows
+
 
 +
==Appearance==
 +
An meshpyr without a material definition will use the default material used by a standard [[pyramid]] object. Geometrically a meshpyr is identical to a standard [[pyramid]] object.
 
{|
 
{|
 
|
 
|
 
  meshpyr
 
  meshpyr
   position 10 20 30
+
   name example 1
   rotation 45
+
   position 0.0 0.0 0.0
   size 1 2 3
+
   size 15 15 15
   matref myMaterial
+
  rotation 0.0
   phydrv myPhysics
+
   matref Mymaterial
 +
   phydrv MyPhydrv
 
  end
 
  end
 
|}
 
|}
  
Valid parameters for a meshpyr are:
+
Valid parameters for the Meshpyr object are:
<properties>
+
{|{{Prettytable}}
position=defines the center of the box in X and Y and the bottom of the box in Z.
+
|-
rotation=defines a rotation around the Z axis for the box, in degrees.
+
| {{Hl3}} |'''Parameter'''
size=defines the distance from the center to the side of the box in X and Y, and the total height of the box in Z.
+
| {{Hl3}} |'''Description'''
matref=reference to a predefined [[material]].
+
|-
phydrv=reference to a predefined [[physics|physics driver]].
+
| '''name''' || name.
</properties>
+
|-
 
+
| '''position''' || position on map.
==Appearance==
+
|-
An meshpyr with out a material definition will use the default material used by a standard [[pyramid]] object. Geometrically a meshpyr is identical to a standard [[pyramid]] object.
+
| '''rotation''' || rotate on z axis.
 +
|-
 +
| '''size''' || size amount.
 +
|-
 +
| '''matref''' || apply a material/texture here.
 +
|-
 +
| '''phydrv''' || assigns a physics driver.
 +
|}
  
 
==Editor Support==
 
==Editor Support==

Latest revision as of 19:50, 1 December 2016

Several meshpyr, with the one in the middle having the default texture

A meshpyr is a BZW map object that constructs a specialized mesh that has the geometric appearance of a Pyramid. It replaces the pyramid object as of v2.0.0 and is compatible with materials and physics drivers.


Appearance[edit]

An meshpyr without a material definition will use the default material used by a standard pyramid object. Geometrically a meshpyr is identical to a standard pyramid object.

meshpyr
 name example 1
 position 0.0 0.0 0.0
 size 15 15 15 
 rotation 0.0
 matref Mymaterial
 phydrv MyPhydrv
end

Valid parameters for the Meshpyr object are:

Parameter Description
name name.
position position on map.
rotation rotate on z axis.
size size amount.
matref apply a material/texture here.
phydrv assigns a physics driver.

Editor Support[edit]

The meshpyr object is only fully supported by the BZWTools blender plug-in.