Where is the SimulationGeneratesHitEvents located?

I need to be able to set the value for the SimulationGeneratesHitEvents variable at runtime, but having searched it from all classes I could imagine it being, I am left empty handed. Ok so first I thought it must be in the UPrimitiveComponent, but it isn’t, trying to find any variable with similar names leads to nothing in both C++ and BP. It also isn’t in the FBodyInstance class.

I just feel it pretty strange how it’s so easy to set it straight from the class defaults in BP, yet even finding where the variable is feels impossible.

So if anyone knows how to access it at runtime or is it even possible, please let me know. :slight_smile:

2 Likes

I think you need to look for boolean “SetNotifyRigidBodyCollision”

2 Likes

Oh thank you so much! I really should have looked up if anyone else was having the same question… my bad :​/

Altho I think they could’ve at least put a comment on the SetNotifyRigidBodyCollision stating that it’s the old name for the now called SimulationGeneratesHitEvents.

1 Like

Agreed!

1 Like