How to get actor's primitive component

Hello, I am trying to disable an actor’s physics using Blueprints. I know I can do this with Set Simulate Physics, but this function requires a Primitive
Component. Currently I have the actor object reference, I am looking for a function that allows me to get the Primitive Component. Is there a way to achieve what I am looking for? Here is a capture of the code: Captura hosted at ImgBB — ImgBB

If you need more info I will be happy provide it to you.

Get Components By Class

4 Likes

YES! Thats what I was looking for, thank you.

UPrimitiveComponent* component = actor->GetComponentByClass(UprimitiveComponent*);
Is that right?