inDigital Twin Visualization, when the camera looks at the target object, the center point of the object is generally regarded as the target position of the “look point”. What I understand is like the best Angle for the camera to look at the object when we’re shooting.

A position can be determined by the rotation Angle of X axis and Y axis relative to the target object in the coordinate system, as well as the distance from the “center” of the target object, which is the position position of the “observation point”.

For example, when (X-axis rotation Angle, Y-axis rotation Angle, distance) = (0,0,1), you are looking at the object at a position 1 times the radius of the surrounding sphere directly toward the object’s Z axis.



ThingJS calculates an object’s “best view” by default, using the center of the box as the target position.

The position of the “best viewing point” is the position that rotates 45 degrees on the X-axis of the center point (XAngle :45) and -45 degrees on the Y-axis (YAngle :-45), and the position that is twice the radius distance surrounding the ball (Radius Factor:2).



If you need to customize the camera position of fit() object, you can control the following parameters to set it:

App.Camera. Fit ({'object': obj, 'xAngle': 60, // 'yAngle': 30, // RadiusFactor :3, // Multiples of the sphere radius around the object});

Using the camera’s lookAt() method, you can also keep the camera “staring” at a location or digital twin visualization, as shown in the following example script:

/ / cameras have been "staring at" 0, 0 point see app. Camera. LookAt ([0, 0, 0]); Var obj = app.query("car01")[0]; var obj = app.query("car01")[0]; app.camera.lookAt(obj); App.Camera. LookAt (NULL);

— — — — — — — –, digital twin visualization: https://www.thingjs.com/