How can I check if an actor is Movable, in c++?

Hi Guys;

How can I check if an actor is Movable (simulate physics or dynamic) , in C++ ?

Thanks.
MSD.

You may have to access the mesh component of your actor to check this setting.

Actor->StaticMeshComponent->Mobility

You can also use SetMobility() to set the mobility of your actor at runtime.

Thank you Dune , it works…

This doesn’t seem to work anymore – I can find neither StaticMeshComponent nor SetMobility on my subclass of AActor.

After some digging I found IsRootComponentMovable in AActor to check for mobility.