-
I am pretty new to 3D stuff. I am trying to develop a model viewer with PIXI3D. I am able to place the model at the center of the canvas and rotate it around the center of the model. But now I want to place the model at a particular position and rotate it around the center of model. I am able translate the model using "position". But it is still rotating around the center of the canvas. Is there a way to move both model and camera and achieve rotating the model around its center at a particular position of the canvas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hello! You can change the "target" property of the camera orbit control. This will be the position it will rotate around.
|
Beta Was this translation helpful? Give feedback.
-
Ok, try this:
|
Beta Was this translation helpful? Give feedback.
Ok, try this:
PIXI3D.Camera.main.obliqueness.x = -0.5