Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include "DrawDebugHelpers.h"
- #define DRAW_SPHERE(Location) if(GetWorld()) DrawDebugSphere(GetWorld(), Location, 25, 12, FColor::Red,true, 30.f);
- #define DRAW_SPHERE_SingleFrame(Location) if(GetWorld()) DrawDebugSphere(GetWorld(), Location, 25, 12, FColor::Red,false, -1.f);
- #define DRAW_LINE(StartLocation, EndLocation) if(GetWorld()) DrawDebugLine(GetWorld(), StartLocation, EndLocation, FColor::Red, true, -1, 0.f,1.f);
- #define DRAW_LINE_SingleFrame(StartLocation, EndLocation) if(GetWorld()) DrawDebugLine(GetWorld(), StartLocation, EndLocation, FColor::Red, false, -1, 0.f,1.f);
- #define DRAW_POINT(Location) if(GetWorld()) DrawDebugPoint(GetWorld(), Location, 15.f, FColor::Red, true);
- #define DRAW_POINT_SingleFrame(Location) if(GetWorld()) DrawDebugPoint(GetWorld(), Location, 15.f, FColor::Red, false,-1);
- #define DRAW_VECTOR(StartLocation, EndLocation) if(GetWorld()) \
- { \
- DrawDebugLine(GetWorld(), StartLocation, EndLocation, FColor::Red, true, -1.f, 0, 1.f); \
- DrawDebugPoint(GetWorld(), EndLocation, 15.f, FColor::Red, true);\
- }
- #define DRAW_VECTOR_SingleFrame(StartLocation, EndLocation) if(GetWorld()) \
- { \
- DrawDebugLine(GetWorld(), StartLocation, EndLocation, FColor::Red, false, -1.f, 0, 1.f); \
- DrawDebugPoint(GetWorld(), EndLocation, 15.f, FColor::Red, false, -1.f);\
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement