Skip to content
Di-Wei Huang edited this page Dec 28, 2016 · 2 revisions

XML definition

The XML element <ring/> has the following attributes:

  • zspan: the height. Default value: 1.
  • radiusOuter: the outer radius. Default value: 1.
  • radiusInner: the inner radius. Default value: 0.5.
  • sides: the number of sides. Default value: 32.

Note that although the object appears to be hollow, currently its collision shape is simply a solid cylinder, i.e., other objects cannot pass through the inner space of a ring. A future improvement would be to construct a detailed collision shape in Ring.java.

Example

ring

Clone this wiki locally