Capsule

data class Capsule(val center1: Vec2, val center2: Vec2, val radius: Float)

A solid capsule shape geometry. A capsule is two semicircles connected by a rectangle.

Parameters

center1

Local center of the first semicircle

center2

Local center of the second semicircle

radius

The radius of the semicircles

Constructors

Link copied to clipboard
constructor(center1: Vec2, center2: Vec2, radius: Float)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard