0.2.0-dev Download ZIP
27 lines ·1.5 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="CapsuleMesh" inherits="PrimitiveMesh" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | Class representing a capsule-shaped [PrimitiveMesh]. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | Class representing a capsule-shaped [PrimitiveMesh]. |
| 8 | </description> |
| 9 | <tutorials> |
| 10 | </tutorials> |
| 11 | <members> |
| 12 | <member name="height" type="float" setter="set_height" getter="get_height" default="2.0"> |
| 13 | Total height of the capsule mesh (including the hemispherical ends). |
| 14 | [b]Note:[/b] The [member height] of a capsule must be at least twice its [member radius]. Otherwise, the capsule becomes a circle. If the [member height] is less than twice the [member radius], the properties adjust to a valid value. |
| 15 | </member> |
| 16 | <member name="radial_segments" type="int" setter="set_radial_segments" getter="get_radial_segments" default="64"> |
| 17 | Number of radial segments on the capsule mesh. |
| 18 | </member> |
| 19 | <member name="radius" type="float" setter="set_radius" getter="get_radius" default="0.5"> |
| 20 | Radius of the capsule mesh. |
| 21 | [b]Note:[/b] The [member radius] of a capsule cannot be greater than half of its [member height]. Otherwise, the capsule becomes a circle. If the [member radius] is greater than half of the [member height], the properties adjust to a valid value. |
| 22 | </member> |
| 23 | <member name="rings" type="int" setter="set_rings" getter="get_rings" default="8"> |
| 24 | Number of rings along the height of the capsule. |
| 25 | </member> |
| 26 | </members> |
| 27 | </class> |