Gravity always sets back
11 posts • Page 1 of 1
Gravity always sets back
Hi, I have a small problem with Gravity: I am making a scene which needs Linear Gravity. Basically everything works, but each time I save the scene or undo the even Sim Start it sets itself back to quadratic for all objects. As I said is it really important for it to use Linear Gravity. Else I had to set the gravity to something like 1000000 and you can imagine the results on low distance...
It would be also ok when there is a Thyme command which sets it onCollide back to Linear.
Thanks you all!
It would be also ok when there is a Thyme command which sets it onCollide back to Linear.
Thanks you all!
I am currently only using Phun 5.28 and not Algodoo. I would annoy the people on the Phun Forum and not here, but the Forum refused new registrations when I looked the last time.
- Papriko
- Posts: 29
- Joined: Tue Nov 17, 2009 8:43 pm
Re: Gravity always sets back
How did this occur? Did you make an object, select it, change the attraction from quadratic to linear? Or did you make an object, select it, change the attraction of it, and then change the attraction from quadratic to linear? And as far as I know, there is no thyme command that can set it to linear or quadratic, at least from what I took the brief moment to look at.
-

standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Gravity always sets back
I created it, set it to linear and then changed it the strength via 2 block that do it onCollide.
While the Simulation runs is everything ok. It stays Linear. As I said: it happens only when I undo the simulation run or when I save and then load the scene.
While the Simulation runs is everything ok. It stays Linear. As I said: it happens only when I undo the simulation run or when I save and then load the scene.
I am currently only using Phun 5.28 and not Algodoo. I would annoy the people on the Phun Forum and not here, but the Forum refused new registrations when I looked the last time.
- Papriko
- Posts: 29
- Joined: Tue Nov 17, 2009 8:43 pm
Re: Gravity always sets back
Well, you found another bug. ;D
-

standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Gravity always sets back
You can't be serious? Wherever I go, one of the first things I do is finding bugs! 
I am currently only using Phun 5.28 and not Algodoo. I would annoy the people on the Phun Forum and not here, but the Forum refused new registrations when I looked the last time.
- Papriko
- Posts: 29
- Joined: Tue Nov 17, 2009 8:43 pm
Re: Gravity always sets back
I am completely serious. I'm surprised that no one had caught these bugs before. Nice job on finding them.
-

standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Gravity always sets back
Hrm, I am not able to recreate the bug.
Does this cause the bug for you?
1. Create a new scene
2. Create a circle
3. Set the circles attraction falloff to linear
4. Set the circles attraction to 0.1
5. Start the scene
6. Stop the scene
7. Undo
Is the attraction falloff quadratic for you, after this is done?
Does this cause the bug for you?
1. Create a new scene
2. Create a circle
3. Set the circles attraction falloff to linear
4. Set the circles attraction to 0.1
5. Start the scene
6. Stop the scene
7. Undo
Is the attraction falloff quadratic for you, after this is done?
Algodoo Developer
- Joel
- Posts: 104
- Joined: Mon Aug 31, 2009 11:03 am
Re: Gravity always sets back
Here's what we did:
- made a circle
- Code: Select all
onCollide = (e)=>{e.this.attraction = 2}
- change object to be linear instead of quadratic
- play simulation
- undo simulation
-

standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Gravity always sets back
To be exact was it like this:
1. new scene
2. making a circle with no collide set and a ring with standard collide set around it to keep the following parts together
3. making a small circle with collide set G only. set it to linear but let the gravity self as it is. glue it to the things from step 2
4. make 2 blocks that change the attraction onCollide, as standardtoaster said. One sets to 100, the other to 0. raise their density so that the circle from step 3 can't attract them so well (to prevent them from colliding again and again although they should only when you want)
5. put everything with springs and button-controlled motors together
6. create a bunch of very small circles that collide with A and G
7. press play, change the attraction of the circle from step 3 with the blocks from step 4
8. pause, undo simulation and notice that the step-3-circle is again set to quadratic
1. new scene
2. making a circle with no collide set and a ring with standard collide set around it to keep the following parts together
3. making a small circle with collide set G only. set it to linear but let the gravity self as it is. glue it to the things from step 2
4. make 2 blocks that change the attraction onCollide, as standardtoaster said. One sets to 100, the other to 0. raise their density so that the circle from step 3 can't attract them so well (to prevent them from colliding again and again although they should only when you want)
5. put everything with springs and button-controlled motors together
6. create a bunch of very small circles that collide with A and G
7. press play, change the attraction of the circle from step 3 with the blocks from step 4
8. pause, undo simulation and notice that the step-3-circle is again set to quadratic
I am currently only using Phun 5.28 and not Algodoo. I would annoy the people on the Phun Forum and not here, but the Forum refused new registrations when I looked the last time.
- Papriko
- Posts: 29
- Joined: Tue Nov 17, 2009 8:43 pm
Re: Gravity always sets back
Either way works to get this bug. 
-

standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: Gravity always sets back
standardtoaster wrote:Here's what we did:
- made a circle
- Code: Select all
onCollide = (e)=>{e.this.attraction = 2}- change object to be linear instead of quadratic
- play simulation
- undo simulation
Ok, I am able to reproduce the bug with that, thanks.
Algodoo Developer
- Joel
- Posts: 104
- Joined: Mon Aug 31, 2009 11:03 am
11 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests



