 |
BoxModelNode Properties |
The BoxModelNode type exposes the following members.
Properties | Name | Description |
---|
 | Position |
Position of the box.
By default this represents the center position of the box, but can be changed by PositionType property.
Default value is (0, 0, 0).
Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
|
 | PositionType |
Type of the Position. Default value is Center.
Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
|
 | Size |
Size of the box. Default value is (0, 0, 0).
Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
|
 | UseSharedBoxMesh |
Gets or sets a Boolean that specifies if a shared mesh with center at (0, 0, 0) and size (1, 1, 1) is used for this box
(this uses the same vertex and index buffer for all boxes with shared mesh; this can be used only when XSegmentsCount, YSegmentsCount and ZSegmentsCount are 1).
In this case the final position and size is set by using a mesh transformation.
When false, then a new mesh instance is created that has the center and size that are specified in this box model.
Default value is true.
|
 | XSegmentsCount |
Number of segments in the X direction. Default value is 1.
Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
|
 | YSegmentsCount |
Number of segments in the Y direction. Default value is 1.
Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
|
 | ZSegmentsCount |
Number of segments in the Z direction. Default value is 1.
Property change will re-generate the mesh in the next update phase. To immediately re-generate the mesh, call the Update method.
|
Top
See Also