- Access violation - code c0000005 (first/second chance not available)
- bWantsBeginPlay was inconsistently enforced
Two errors I’m getting from the Grabber component. At first, while writing the code myself I was getting the second compiling error. I didn’t touch anything in the constructor, so I had no idea what happened. Then, I put in the lecture’s provided code and still got the same error. Also, both times I changed the GrabComponent to GrabComponentActLocationWithRotation. Eventually it would compile, but then it just wouldn’t run, and instead would crash the editor. So with my own code and the provided code, I’m really stuck. I think I’ve come to the conclusion that grabbedcomponent() check is the issue:
if (PhysicsHandle->GrabbedComponent) {
PhysicsHandle->SetTargetLocation(LineTraceEnd);
}
I’m using version 4.14.1