How to rotate an object (door) around another axis (not around 0,0)?

Hello Forum!

There was a similar question in the past, and I want to know is there another explanation than

“The best practice would be to set the door’s pivot on where the hinges are in your modeling program. If you dont want to do that you can add a Scene component to your BP to use as a null object, set its location to the door hinges, attach the door to that scene component and rotate the scene component.” from Jacky.

I cannot set the door’s pivot on where the hinges are in my modeling program.

How do I insert a “Scene component”? and do the other mentioned stuff?
Can anybody explain this a litte more detailed step by step, maybe with pictures?

Or is there another method already?

Thanks,… Annotator

It’s rather simple really :slight_smile:

You create your blueprint. In the components tab you add your static mesh (by first adding a static mesh component and then selecting your mesh there). This will replace the DefaultSceneRoot and you can’t modify the position or scale of your mesh anymore.

Search for “Scene”

As the text explains this is nothing but a simple point in your level and will not impact anything.
You then move this on top of your static mesh (simply click and drag & drop it on top of it). It will have a tooltip saying “Drop here to make Scene1 the new root component”. Let go and your scene is the new root. From now on you can again modify your static mesh and change the position and so on.

Of course you can also get the scene component first. Then you wouldn’t have to move it around but I wanted to explain that as well so in case it happens you know how to do it :wink:

I hope this helps.

Cheers

thanks for your explanation, I got it.
But it was tricky to move the object to 0,0 by tryout in the Transform coordinates.

Is there another/easier possibility to move the object rotation center to coordinate 0,0 of the scene?

Greetings from Vienna,… Annotator

Not really. Usually one knows the size of an object or already modeled it the way one wants it (the “center” location already like it should be in game or in editor)