Camera LineTrace always goes to same point in the sky

I don’t understand why the end location for my line trace is always the same position in the world. The start location updates, but the end is always the same spot no matter where you move.

Line Trace

	FVector Start = PlayerCamera->GetComponentLocation();
	FVector End = PlayerCamera->GetComponentLocation().ForwardVector + 1500.f;
	FCollisionQueryParams Params;
	Params.AddIgnoredActor(this);
	DrawDebugLine(GetWorld(), Start, End, FColor(255, 0, 0, 1), true, 10.f, 2, 20);
	return GetWorld()->LineTraceSingleByChannel(Hit, Start, End, ECollisionChannel::ECC_Camera, Params);

Try:

FVector End = PlayerCamera->GetForwardVector() * 1500.f + Start;
1 Like

Changing it to * made it lower but it is still always in the same position.

oh and I forgot to add it is going backwards.

Fixed my prev post. It doesnt work?

thank you didn’t realize you removed the component location from the FVector it works now TY so much!

Well it works when you first spawn in, but when you rotate eventually it starts line tracing in a random direction?