Hello again! I have a problem with the text sprite; In the project there are several types of objects - points, lines, pointer. This sets of sprites: image + text sprite. To make the text not overlap with the image it moves in a circle around the object, as if "running away" from it;
cursor.getSprite(1).setText(truncated(PxToCm(Math.sqrt(DX*DX+DY*DY)),0)+" см");
cursor.setSpriteOffset(1,{x:-80*DY/Math.sqrt(DX*DX+DY*DY),y:80*DX/Math.sqrt(DX*DX+DY*DY)});
However, I do have the ability to scale from scrolling and it is clear that the entire text is also reduced.
Well, so far, translated into English seems to have found a solution
wade.app.onCameraMove = function(data){
tape_measure_text.setFont(20*data.newPosition.z+'px lato');
};
There are still ways to solve this?