DrawCapsule method

  1. @override
void DrawCapsule(
  1. Vector3D startPos,
  2. Vector3D endPos,
  3. double radius,
  4. int slices,
  5. int rings,
  6. ColorD color,
)
override

Draw a capsule with the center of its sphere caps at startPos and endPos

Implementation

@override
void DrawCapsule(
  Vector3D startPos,
  Vector3D endPos,
  double radius,
  int slices,
  int rings,
  ColorD color,
) => _ffi.DrawCapsule(
  $.Vector3$.Ref1(startPos).asNativePointer<Vector3C>().ref,
  $.Vector3$.Ref2(endPos).asNativePointer<Vector3C>().ref,
  radius,
  slices,
  rings,
  $.Color$.Ref1(color).asNativePointer<ColorC>().ref,
);