Capsule3D constructor

Capsule3D({
  1. double radius = 0.5,
  2. double height = 2.0,
  3. int segments = 24,
  4. int rings = 8,
  5. bool smooth = true,
  6. String material = '',
  7. Color color = defaultColor,
  8. double metallic = 0.0,
  9. double roughness = 0.75,
  10. Color emission = const Color(0xFF000000),
  11. double emissionStrength = 1.0,
  12. double opacity = 1.0,
  13. bool unlit = false,
  14. String texture = '',
  15. Vector2? tiling,
  16. bool tileInMetres = false,
  17. bool castShadows = true,
  18. bool visible = true,
})

A capsule 1 m across and 2 m tall by default.

Implementation

Capsule3D({
  this.radius = 0.5,
  this.height = 2.0,
  this.segments = 24,
  this.rings = 8,
  this.smooth = true,
  super.material,
  super.color,
  super.metallic,
  super.roughness,
  super.emission,
  super.emissionStrength,
  super.opacity,
  super.unlit,
  super.texture,
  super.tiling,
  super.tileInMetres,
  super.castShadows,
  super.visible,
});