Gravity always sets back

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

Gravity always sets back

Postby Papriko » Thu Nov 19, 2009 11:09 pm

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!
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

Postby standardtoaster » Thu Nov 19, 2009 11:21 pm

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.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Gravity always sets back

Postby Papriko » Fri Nov 20, 2009 7:41 pm

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.
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

Postby standardtoaster » Fri Nov 20, 2009 7:44 pm

Well, you found another bug. ;D
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Gravity always sets back

Postby Papriko » Fri Nov 20, 2009 7:48 pm

You can't be serious? Wherever I go, one of the first things I do is finding bugs! :lol:
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

Postby standardtoaster » Fri Nov 20, 2009 8:15 pm

I am completely serious. I'm surprised that no one had caught these bugs before. Nice job on finding them.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Gravity always sets back

Postby Joel » Mon Nov 23, 2009 10:45 am

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?
Algodoo Developer
Joel
 
Posts: 104
Joined: Mon Aug 31, 2009 11:03 am

Re: Gravity always sets back

Postby standardtoaster » Mon Nov 23, 2009 11:08 am

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
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Gravity always sets back

Postby Papriko » Mon Nov 23, 2009 8:52 pm

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
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

Postby standardtoaster » Mon Nov 23, 2009 9:21 pm

Either way works to get this bug. :)
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: Gravity always sets back

Postby Joel » Tue Nov 24, 2009 10:32 am

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


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 4 guests