Please tell me What is wrong with this code

It didn’t work because you forgot to add mass to your impulse calculation. Something like this should work:


UpdatedPrimitive->AddImpulseAtLocation(GetActorUpVector() * UpdatedPrimitive->GetMass() * impulseAmount, GetActorLocation());