How to move smoothly a point to a new position by click?

Алексей Сгибнев shared this question 5 months ago
Answered

The point A should be moved smoothly to the point B by clicking a button. The SetValue script isn't ok because it moves the point instantly. Is there any special script for this case? Or some simple trick?

Comments (6)

photo
1

make a path=segment(start,stop) and move=point(path). move has an animation property you can run. segment may be a polyline, circlearc or somewhat else...

path,start, stop visible or not visible?

photo
1

Points A and B must lie on the same given visible circle. The path of the point A must be the arc toward the point B. How can we organize such path if first we draw the cicrcle and then the points on it? The animation of the point A gives us non-stop rotation or one round turn.

photo
1

try with attached

photo
1

Firstly, if you have a circular movement already in your mind, please specify your question from the start instead of the guess hawe was confronted with. Secondly, indeed, if you define a point as lying on a circle it will move along the whole circle, so as alfabeta suggests, you have to define the point where you want the animation to stop as lying at the end of the path, that's to say a circular arc that ends where you want the moving point to stop.

photo
1

Define a Slider t=0..1

Path: p=CircularArc(M, A, B)

move=Point(p, t)


a slider has more properties for animation details like repeat, speed - accelerate and slow down eg. Speed =-5 t² + 5t + 0.5...


ggf. you can move point A by determining the Position by slider value t for start and stop position

photo
1

ccambre, my first question was about general problem – is there any script for smooth motion of a point from one defined position to another. From discussion I saw that the answer is 'no'. Than I specified my question for one of the problems I meant.

alfabeta2, hawe, ccambre, thank you for your replies.

photo
© 2021 International GeoGebra Institute