How DrawDebugBox() with rotation?

There is a DrawDebugBox() command that takes a rotation as a FQuat.
If you don’t feel comfortable with Quaternions use a FRotator and do
rotator.Quaternion() on it.

e.g.:
DrawDebugBox(GetWorld(), GetActorLocation(), FVector(200.0f, 400.0f, 300.0f), rot.Quaternion(), FColor::Red);

for making the TriggerBox visible in game, set “Actor Hidden In Game” to false, it’s a setting under rendering.

275250-showactor.png

1 Like