I can't call GetPhysicsObjectWorldTransform even though I have the correct include and module in my project according to the Documentation. What do I have to do differently?

I want to call UPhysicsObjectBlueprintLibrary::GetPhysicsObjectWorldTransform, but it gives me a linker error.

#include "PhysicsEngine/PhysicsObjectBlueprintLibrary.h"

Initially even the above include did not work.I checked the documentation for it and it says that the module is just Engine. Engine is already a module dependency for my project, but I still got a linker error. After doing some digging, I guessed that adding Chaos as a dependency would make the linker error go away. Which it did for the include. However I still get a linker error when I call UPhysicsObjectBlueprintLibrary::GetPhysicsObjectWorldTransform.

I have no idea what module dependency to add to make this work.

Looking at the documentation for Engine module I see that it has a filter for PhysicsEngine which is relevant PhysicsObjectBlueprintLibrary. Do I have to specify the Filter somehow (if so, how would I do that)?

Documentation for UPhysicsObjectBlueprintLibrary

Documentation for Engine Module

1 Like

Having the exact same issue trying to call UPhysicsObjectBlueprintLibrary::ApplyRadialImpulse