Hello.
I’m trying to constrain the rotation and translation of an StaticMeshComponent via C++.
Currently I’m doing this:
Door->GetBodyInstance()->bLockXRotation = true;
Door->GetBodyInstance()->bLockYRotation = true;
Door->GetBodyInstance()->bLockTranslation = true;
Door is the StaticMeshComponent. The rotations are locked, it works fine. But, locking the translation doesn’t work. Any idea? Is this a bug?
Thanks!