How to add impulse at location using AsyncPhysicsTick in C++?

Heres the solution, the only thing you need is a body instance. (you should save it into a variable from gamethread)

GrabbedObject.AsBodyInstance->AddImpulseAtPosition(ForceToAdd * DeltaTime, CurrentTransform.GetLocation(), PlayerController->GetPhysicsTimestamp(), PlayerController);

1 Like