mecanicus Posted April 11, 2018 Share Posted April 11, 2018 Hello, I would like to display the value of the rotation z of a rotating object. I did a test on the PG (line 36), but it does not work. How should I do it ? Thanks for your help. http://www.babylonjs-playground.com/#NRBSGY#4 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted April 11, 2018 Share Posted April 11, 2018 Hi M! https://www.babylonjs-playground.com/#NRBSGY#6 (still broke but we know why, now.) It seems that libelle.text NEEDS to be type String. Interesting. Disable line 36, and activate line 37, or 38, or 39. Your choice... it will start working... https://www.babylonjs-playground.com/#NRBSGY#8 #8 activates line 37 ... adding a toFixed() call. Working goooood. http://www-db.deis.unibo.it/courses/TW/DOCS/w3schools/jsref/jsref_tofixed.asp.html According to that... toFixed() converts number to string. I did not know that. EVERYONE learns new stuff... today. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
mecanicus Posted April 11, 2018 Author Share Posted April 11, 2018 Thanks Wingnut, We are two to have learned something today and in addition that resolves my problem ;-) Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.