how DrawDebugBox() with rotation ?
I have ATriggerBox class, no matter I do I can't make TriggerBox visible and add another static mesh is no use cause it gets invisible too.
and when I use DrawDebugBox() I can get the vision of trigger box but DrawDebugBox() not follow rotation.
I will be thankful if someone can tell me how to give rotation to DrawDebugBox() or how to make TriggerBox visible?
asked Apr 25 '19 at 09:03 PM in C++ Programming
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.
answered Apr 25 '19 at 09:49 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here