Hey,
I’ve noticed an issue with the grabber: grabbing the object not exactly on the lineTraceEnd makes it acting weird.
I managed to fix it by replacing
if(hitResult.GetActor())
{
physicsHandle->GrabComponentAtLocation(componentToGrab, NAME_None, lineTraceEnd);
}
by
if(hitResult.GetActor())
{
physicsHandle->GrabComponentAtLocation(componentToGrab, NAME_None, hitResult.Location);
}
Now the object slowly moves to the lineTraceEnd location and no longer has an offset between the lineTraceEnd and it’s actual location.
Maybe it has been fixed later in the course but I hope it can be useful to someone.