RealDocs

AActor::GetSimpleCollisionRadius

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

Description

Returns just the radius component of GetSimpleCollisionCylinder(). Convenience wrapper to avoid unpacking both outputs when only the radius is needed.

Caveats & Gotchas

  • Internally calls GetSimpleCollisionCylinder() and discards the half-height output. If you need both radius and half-height, call GetSimpleCollisionCylinder() directly to avoid computing it twice.
  • Like GetSimpleCollisionCylinder(), the radius is a coarse approximation — not suitable for precise physics collision queries.

Signature

float GetSimpleCollisionRadius() const

Return Type

float

Example

Quick radius-only check C++
float MyRadius = GetSimpleCollisionRadius();
float OtherRadius = OtherActor->GetSimpleCollisionRadius();
float DistXY = FVector::DistXY(GetActorLocation(), OtherActor->GetActorLocation());
bool bWithinReach = DistXY < (MyRadius + OtherRadius);

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.