Cannot simulate physics on USphereComponent / OnHit event does not work

Turns out I needed to add the following:

MyCollisionComponent->SetNotifyRigidBodyCollision(true);

Hey,

I’ve been trying to create an object that will handle OnHit events. The problem is that my objects do not seem have any kind of physics simulation whatsover as they do not move when I begin the game.

I have looked through the entire details panel on the blueprint and cannot see anything that would indicate why my code doesn’t work.

Links to Source: Header, CPP

I have also recreated the same thing in a Blueprint and used the OnComponentHit event and it works fine, so I’m not sure where I’m going wrong when I try to do it in CPP.