Suggestion: show debug trace teaches you a lot about what the game is doing

Here is my call to SuggestProjectileVelocity:

const TArray<AActor*> ActorsToIgnore;
UGameplayStatics::SuggestProjectileVelocity(
	this,
	TossVelocity,
	BarrelLocation,
	HitLocation,
	LaunchSpeed,
	false,
	0.f,
	0.f,
	ESuggestProjVelocityTraceOption::DoNotTrace,
	FCollisionResponseParams::DefaultResponseParam,
	ActorsToIgnore,
	true
)

Now when you play the game, you get these yellow curves on the screen that demonstrate where each tank’s projectile curve is. Very informative.

You can change the DoNotTrace option to ESuggestProjVelocityTraceOption::TraceFullPath and it will show you the high curve option too which is pretty cool - however the bug of not being able to compute the velocity returns when you do that. Do it once to see the low+high curves, but make sure you set it back to DoNotTrace to avoid this weird and wonderful bug.

Edit: the bug may indeed not be be a bug - this forum has an excellent post on why it may be working as intended. However to get the game working in the way that the developers here have built it, I would recommend setting the value back to DoNotTrace when you have seen the projectile debug paths.

Privacy & Terms