Hey Community,
So I was playing around with an idea and then I realized something was up! Now, i’m not sure if it is a bug or perhaps a logic error but hopefully someone could clarify this.
So long as MaintainWorldPosition is true when detaching then the CameraBoom will not re-attach correctly. However, when it is set to false it works perfectly. Though for what I am doing I need the camera to maintain it’s position when detached. If anybody knows what the problem is then by all means let me know!
Thanks!
//Detaching
CameraBoom->DetachFromParent(true, false);
//Attaching
CameraBoom->AttachTo(RootComponent);
CameraBoom->TargetArmLength = 500.0f; // The camera follows at this distance behind the character
CameraBoom->bAbsoluteRotation = true;
CameraBoom->bDoCollisionTest = true;