Grabbing bugfix

Had a problem where the object I grab wasn’t being raised when I raised the camera.
Turns out my grabber component was assigned to the capsule component in BP_Player instead of the camera component, so the forward vector wasn’t changing.

Also I wanted the object I pick up to hang off a chain until I interact with it but having physics on from the start just made it fall off.
You can toggle physics on the object using,

HitResult.GetComponent()->SetSimulatePhysics(true);

Hopefully this helps someone.

2 Likes

Privacy & Terms