How to access PhysicsDirectSpaceState in C++?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MomoVR

In C# this would be GetWorld().DirectSpaceState on a Spatial. How can this be done in C++?