Crypt Raider Line trace

Debug Line doesn’t match camera rotation. It does change axises in ulog, but line is staying still despite my rotation change. can someone help?


Your calculation is incorrect. You want to scale the ForwardVector by MaxGrabDistance so want to multiply not add. Putting it on separate statements to show the intended calculation:

FVector Start = GetComponentLocation();
FVector Distance = GetForwardVector() * MaxGrabDistance;
FVector End = Start + Distance;

Sorry and thanks you

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

Privacy & Terms