AR.js icon indicating copy to clipboard operation
AR.js copied to clipboard

A-Text Rotate 90 degree

Open akmal4244 opened this issue 4 years ago • 7 comments

Do you want to request a feature or report a bug? How to rotate a-frame a-text? in location-based

What is the current behavior? Put rotation style but not rotate to 90 degree

If the current behavior is a bug, please provide the steps to reproduce. If you guys know the method, please let me know

Please mention other relevant information such as the browser version, Operating System and Device Name Android 10, Asus ROG Phone 2, Chrome

What is the expected behavior?

If this is a feature request, what is motivation or use case for changing the behavior?

Below is the code:

 	<a-sphere
  	color="green"
        look-at="[gps-camera]"
        scale="0.49205916205718183 0.49205916205718183 0.49205916205718183"
        gps-entity-place="latitude: 3.06492; longitude: 101.60849;">	      	
                     <a-text 
			look-at="[gps-camera]"
			value="Point 1"
			color="yellow"
			rotation="0 90 0"
			scale="7, 7"
			position="-2.5 4 0"
			z-offset="3"
			faceUser: true;>
		</a-text></a-sphere>
    <a-sphere

akmal4244 avatar Jan 12 '21 08:01 akmal4244

90 degrees in which plane?

howabout rotation="0 90 0" ?

everythingability avatar Jan 12 '21 08:01 everythingability

90 degrees in which plane?

howabout rotation="0 90 0" ?

I already try that, but that a-text still same, not rotate. ball

akmal4244 avatar Jan 12 '21 09:01 akmal4244

Might be the look-at="[gps-camera]"? What happens if you remove that line?

mmnoo avatar Jan 12 '21 22:01 mmnoo

Might be the look-at="[gps-camera]"? What happens if you remove that line?

Hi, I have try, nothing happen.

akmal4244 avatar Feb 08 '21 09:02 akmal4244

Might be the look-at="[gps-camera]"? What happens if you remove that line?

I want like this.

104292800-3dc6e680-54f8-11eb-8fc8-8fa3684a5068 104292800-3dc6e680-54f8-11eb-8fc8-8fa3684a5068 (1)

akmal4244 avatar Feb 08 '21 09:02 akmal4244

Have you try to rotate in different plane? rotation="90 0 0" rotation="0 90 0" rotation="0 0 90" or maybe other numbers and see the effects. and you might also want to change the position if you want the text on the left side.

meizano avatar Apr 06 '21 15:04 meizano

I am looking for the same solution, I can't move the text even I tried several approaches using rotation and position

ogdenxr avatar Apr 07 '21 03:04 ogdenxr