When I use a PhysicsHandle->GrabComponent in an actor component, it crashes Ue4 when I click Play. There are no errors when compiling. it only crashes when I include the code in Tick Component, but when I remove it, it runs fine but without me being able to use the physics handle.
`void UGrabberr::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
{
///
Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
// if the physics handle is attached
CheckGrabbedComponent();
}
void UGrabberr::CheckGrabbedComponent()
{
// move the object that we’re holding
PhysicsHandle->SetTargetLocation(GetReachLineEnd());
}`
If you want a zip of the code or more info, answer and ask