What is the difference between using one versus the other in the argument to GrabComponentAtLocationWithRotation()? The professor while refactoring thought about it for a second and then just moved on. I tried using both and the difference I observed is when grabbing, the first case the table does not lift itself off the ground on pressing shift key but that happens in the second case.
If I’m not mistaken ComponentToGrab->GetOwner()->GetActorLocation() is the position vector to the base of the actor you are grabbing. LineTraceEnd() is the position vector of the end of your grab-line.
So the first one grabs the object at the object base and the latter grabs it wherever your linetrace hits the actor or at point at the actor closest to your linetraceend() (I don’t know which of the last ones is true).