Hello, everyone,
I may have addressed this topic before. It’s more of a basic understanding question.
I have an existing scene that I have as a bundle.
I would like to program new features for our customers, such as moving objects.
This works quite well so far, I can move objects on the axes and animate them via tween.
I still have problems with the rotation of objects. When I rotate individual objects, they always rotate around the global origin of the scene. This is most likely due to the local position of the object I guess. For test purposes, we placed an object exactly on the zero point and the rotation worked as expected.
Is there a way to change the pivot point of the object? Maybe you have to move the vertices for this?
I know the topic is not easy, but I would like to know more about the possibilities.
I have taken the following steps so far.
-
I took the geometry of an object from the scene and created a new Object3D from it and added it to the scene.
-
I transferred the world matrix of the newly created object to the actual object. If the newly generated object is moved or rotated, the actual object in the scene also moves.
Right approach or rather wrong?