Search documentation of bb

# BB.Dsl.Capsule (bb v0.17.0)

Copy Markdown View Source

A capsule geometry (cylinder with hemispherical caps).

Capsules are defined by a radius and height. The height is the distance between the centres of the two hemispherical caps (i.e., the length of the cylindrical portion). The total extent is `height + 2 * radius`.

Capsules are commonly used for collision detection because they have simpler intersection algorithms than cylinders and better approximate robot limbs.

## Summary

### Types

t()

## Types

# t()

    @type t() :: %BB.Dsl.Capsule{
      __identifier__: any(),
      __spark_metadata__: Spark.Dsl.Entity.spark_meta(),
      height: Localize.Unit.t(),
      radius: Localize.Unit.t()
    }