@awayjs/scene
Version:
AwayJS scene classes
22 lines • 1.05 kB
TypeScript
import { IMaterial } from '@awayjs/renderer';
import { PrimitiveCylinderPrefab } from '../prefabs/PrimitiveCylinderPrefab';
/**
* A UV Cone primitive sprite.
*/
export declare class PrimitiveConePrefab extends PrimitiveCylinderPrefab {
/**
* The radius of the bottom end of the cone.
*/
get radius(): number;
set radius(value: number);
/**
* Creates a new Cone object.
* @param radius The radius of the bottom end of the cone
* @param height The height of the cone
* @param segmentsW Defines the number of horizontal segments that make up the cone. Defaults to 16.
* @param segmentsH Defines the number of vertical segments that make up the cone. Defaults to 1.
* @param yUp Defines whether the cone poles should lay on the Y-axis (true) or on the Z-axis (false).
*/
constructor(material?: IMaterial, elementsType?: string, radius?: number, height?: number, segmentsW?: number, segmentsH?: number, closed?: boolean, yUp?: boolean);
}
//# sourceMappingURL=PrimitiveConePrefab.d.ts.map