@tolokoban/tgd
Version:
ToloGameDev library for WebGL2
11 lines • 471 B
TypeScript
import { TgdGeometry } from "../../geometry";
/**
* The capsule is a 3D shape mae of a cylinder
* and two hemispheres, all of radius 1.
* The roundness gives use the number of faces around the cylinder.
* Every vertex has 4 coordinates: x, y, z, and a number that will
* be 0.0 for bottom tip, and 1.1 for top tip.
* The cylinder is aligned along Z axis.
*/
export declare function makeCapsule(roundness: number): TgdGeometry;
//# sourceMappingURL=capsule.d.ts.map