Image:
 Author: XO3-DAN-FR Group: Technical Filesize: 98.55 kB Date added: 2023-04-09 Rating: 5 Downloads: 224 Views: 147 Comments: 1 Ratings: 1 Times favored: 0 Made with: Algodoo v2.1.0 Tags:
|
Hi,
I have a problem to synchronize rotations without contacts.
I explain in this example,
Let's imagine that I want to synchronize in ratio of 1/2 two circles without contacts,
in the most logical way for me, it is to take as reference here the circle "A1" and in it write in the parameter postStep = {scene.my.A = angvel}, then in the circle "A2" postStep = {angvel = scene.my.A / 2}
I get a good ratio of 1/2 at the moment, however after several tens of seconds of simulation or after having modified in live the speed or the direction of rotation as well as to exert forces on the circles,
the synchronization between the circles is lost and the angle of revolution between the two circles is not the same anymore, the ratio of 1/2 is not precise in time, it can be 1/1.99 or 1/2.01, what I am looking for is a perfect 1/2 in time whatever the efforts on the circles or the
efforts on the cerlces or a sudden modification of the movement of "A1". A perfect synchronization.
So I said to myself to try in the second example, it is to take as reference here the circle "B1" and in it write in the parameter postStep = {scene.my.B = angle}, then in the circle "B2" postStep = {angvel = scene.my.B / 2}
But although I get a perfect synchronization because it depends totally on the angle of B1 in real time, the circle "B2" must have half the angle of "B1" that this one oppert only half a turn and not a full turn which is not what I want.
I ask for your help if you have an idea using only the object parameters (postStep, Update... or other) to try to obtain a synchronization of rotation without contact between two objects with a ratio of 1/2, 1/4, 1/X stable in time ....
Thanks a lot ! |