Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/SceneManagement.h |
| Include | #include "SceneManagement.h" |
| Source | /Engine/Source/Runtime/Engine/Private/PrimitiveDrawingUtils.cpp |
void DrawWireSphereCappedCone
(
FPrimitiveDrawInterface * PDI,
const FTransform & Transform,
double ConeLength,
double ConeAngle,
int32 ConeSides,
int32 ArcFrequency,
int32 CapSegments,
const FLinearColor & Color,
uint8 DepthPriority
)
Remarks
Draws a wireframe cone with a arcs on the cap
Parameters
| Name | Description |
|---|---|
| PDI | Draw interface. |
| Transform | Generic transform to apply (ex. a local-to-world transform). |
| ConeLength | Pre-transform distance from apex to the perimeter of the cone base. The Radius of the base is ConeLength * sin(ConeAngle). |
| ConeAngle | Angle of the cone in degrees. This is 1/2 the cone aperture. |
| ConeSides | Numbers of sides that the cone has. |
| ArcFrequency | How frequently to draw an arc (1 means every vertex, 2 every 2nd etc.) |
| CapSegments | How many lines to use to make the arc |
| Color | Color of the cone. |
| DepthPriority | Depth priority for the cone. |