DrawDebugPoint Problem?

HI all,

I’m @9:09 of the lecture before the challlenge on doing God only knows with the LineTracing byChannel which I have no idea about, but we are supposed to have a largish red point moving around on the screen and there is nothing there at all,and this is after changing the value to 20.

The code was working fine up to that point had the debug camera showing up and facing the right way this time (unlike the last lecture) but when that was commented out and added the code:

    //end of the rayTrace line ???
	FVector endLine = Location + Rotation.Vector() * MaxRange;
	//todo: Linetracing stuff
	
	//we can remove the above Debug camera line - only used for instructional purposes
	//and add a DrawDebugPoint
	DrawDebugPoint(GetWorld(), Location, 20, FColor::Red, true);

There is nothing showing up! Can someone with fresh eyes tell me what I am missing to get the code working correctly.

Thankyou and Regards.

Ohhh, figured it out, I just needed to run backwards a few steps for it to show up!

D’oh.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms