RealDocs

AActor::GetSimpleCollisionCylinderExtent

function Engine Since 4.0
#include "GameFramework/Actor.h"
Access: public Specifiers: inline

Description

Returns the simple collision cylinder as an FVector(Radius, Radius, HalfHeight), convenient for axis-aligned extent comparisons and box overlap approximations.

Caveats & Gotchas

  • The returned vector is not a box extent — X and Y are both the cylinder radius, not independent dimensions. Do not pass this directly to box-overlap functions expecting true per-axis extents.
  • Like all GetSimpleCollision* helpers, the values come from GetSimpleCollisionCylinder() and represent a coarse bounding approximation, not the actual physics shape.

Signature

FVector GetSimpleCollisionCylinderExtent() const

Return Type

FVector

Example

Use extent for a quick AABB overlap estimate C++
FVector Extent = GetSimpleCollisionCylinderExtent();
FBox ApproximateBounds(GetActorLocation() - Extent, GetActorLocation() + Extent);
if (ApproximateBounds.Intersect(TriggerBounds))
{
    // Rough overlap — refine with a proper trace if needed
}

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.