mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-06 11:31:59 +08:00
9f89b0ef24
* Temp * temp * move ui core * Arrange ui and terrain * Fix import path for all modules except core * Move primitives into core * Fix debug.getError * Move audio-downloader to audio module * export game from game.ts * Migrate load-pipeline to ts * Fix core modules and cleanup * Move animation into core * Fix module exports * Fix director issue * Remove most cc.director usage * Fix ts issues * Fix issues for unit test and editor running * Revert removing deprecated import * tweaks * tweaks * Fix ci * Fix ci * Add modules in module division * Upgrade coordinates-converts-utils
19 lines
417 B
TypeScript
19 lines
417 B
TypeScript
/**
|
|
* @category 3d/primitive
|
|
*/
|
|
|
|
import cylinder, { ICylinderOptions } from './cylinder';
|
|
|
|
type IConeOptions = ICylinderOptions;
|
|
|
|
/**
|
|
* @zh
|
|
* 生成一个圆锥。
|
|
* @param radius 圆锥半径。
|
|
* @param height 圆锥高度。
|
|
* @param opts 圆锥参数选项。
|
|
*/
|
|
export default function (radius = 0.5, height = 1, opts: RecursivePartial<IConeOptions> = {}) {
|
|
return cylinder(0, radius, height, opts);
|
|
}
|