How to rotate text objective along specific curve smoothly?

cooooldog shared this question 5 years ago
Answered

:smiley_cat:


I am going to create some "perpetual motion machine" for fun. :smiley_cat:


So far the animated GIF I obtained is as below:

c7b404aaa077a79ea3b7586ca9561d48


The GGB is here:


https://ggbm.at/1388971


The problem is that, I don"t know how to handle the yellow text smoothly.


When I use the command `RotateText`, the rotation center cannot be easily identified when coordinates of the text object changes along a predefined arc/curve.


How can I rotate the text smoothly along a curve? or how to fix the rotation center always at the center of the text object? :smiley_cat:

Comments (5)

photo
1

hello

i suppose you can learn of this

saludos

https://ggbm.at/1388973

photo
1

https://ggbm.at/1388975

:smiley_cat:


thank you very much!


It seems there is a bug in `text` command of previous 5.0.82 version. Due to network connection problem, I couldn't upgrade Geogebra to later than 5.0.82 versions and had no access to this forum or the geogebra Wiki documents until yesterday. (from China)


Now when I try to re-create the ggb from the latest 5.0.109, it works very well (creating from the former ggb created by 5.0.82 still does not work).


I used the `corner` command to obtain the center of text object, this also solves the prolbem.


Here are the results:

327a5ff2fa3b42d42a7ae8c74efabce2


https://ggbm.at/1388975


Another minor issue might be, when using "RotateText", the font style becomes a little weird, i.e., not as smooth as expected.


hello

i suppose you can learn of this

saludos

photo
1

thank you @mathmagic


This solution looks more elegant and neat than mine. :smiley_cat:


Additionally, how do you animate the graph since there is no `slider` in it?


hello

i suppose you can learn of this

saludos

photo
1

hello

i animate only the point G in a list1 of paths but i know that a slider gives more control


saludos

photo
1

hello

i animate only the point G in a list1 of paths but i know that a slider gives more control


saludos


thank you :smiley_cat:

© 2020 International GeoGebra Institute