Thyme help please?
5 posts • Page 1 of 1
Thyme help please?
ok say if there was a big circle hinged to the background and on the top and bottom of that big circle was a smaller circle. i want it so the top circle is heavier than the bottom circle. so it would go to the bottom and the lighter circle would go to the top because of gravity. but then when the heavy circle is on the bottom and the light circle is on the top the light circle becomes heavy and the heavy circle would be light. so if this works right then it will be a continuos spin
but i dont know much thyme and if you understood that thing up there then please help!
but i dont know much thyme and if you understood that thing up there then please help!
I won't be on the forums much for a while. But maybe once in a while.
-

HavingPhun - Posts: 178
- Joined: Sun Feb 06, 2011 10:42 pm
Re: Thyme help please?
Oncollide(e)=>{e.other.density=--density goes here--}
or Onlaserhit (e)=>{e.geom.density=--density goes here--}
That should work...
or Onlaserhit (e)=>{e.geom.density=--density goes here--}
That should work...
-

TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
Re: Thyme help please?
i put the code in and it doesn't change the density any other code?
I won't be on the forums much for a while. But maybe once in a while.
-

HavingPhun - Posts: 178
- Joined: Sun Feb 06, 2011 10:42 pm
Re: Thyme help please?
I think I remember seeing a tutorial for an air friction engine somewhere.
-> Make a big circle.
-> Center-hinge it to the background.
-> Center-hinge a small circle to the top edge of the big circle. Use the grid if you have Algodoo. (Do you have Algodoo?)
-> Clone the small circle and place the clone on the bottom edge of the big circle. Get it as close to the center as the first one was. (Use Grid!)
-> Add some more circles in this fashion if you like, always making sure they are all exactly the same distance from the center. Some's good, more's better, too much is just right. (Same goes for nails if you are a carpenter, and I did not make that up.)
-> Make a box, length is about half the diameter of the big circle, width is about equal to the diameter of the little circles.
-> Place this box where its center overlaps the little circles a bit. It should be on top and horizontal.
-> Fixate it to the background.
-> Make its friction 0.
-> Clone it and place the clone on the bottom, still overlapping the small circles a bit.
-> In the top box goes this code (use onCollide):
-> In the bottom box goes this code (use onCollide):
This is a Density Engine. If you move the above construction onto a box that is fixated to the background, it will still work fine. If you un-fixate the box from the background and drop/fixate it onto a car with no motors on the wheels, it will not only spin but also push the car. See the Early Aircraft Collab for applications of this.
EEEERRRRRRGGGGGHHHHHH!!!!!!!
WHY WON'T THE STUPID FORUM SOFTWARE LET ME USE MORE THAN 10 SMILIES?!?!?!

-> Make a big circle.
-> Center-hinge it to the background.
-> Center-hinge a small circle to the top edge of the big circle. Use the grid if you have Algodoo. (Do you have Algodoo?)
-> Clone the small circle and place the clone on the bottom edge of the big circle. Get it as close to the center as the first one was. (Use Grid!)
-> Add some more circles in this fashion if you like, always making sure they are all exactly the same distance from the center. Some's good, more's better, too much is just right. (Same goes for nails if you are a carpenter, and I did not make that up.)
-> Make a box, length is about half the diameter of the big circle, width is about equal to the diameter of the little circles.
-> Place this box where its center overlaps the little circles a bit. It should be on top and horizontal.
-> Fixate it to the background.
-> Make its friction 0.
-> Clone it and place the clone on the bottom, still overlapping the small circles a bit.
-> In the top box goes this code (use onCollide):
- Code: Select all
e=>{e.other.density = 1000;
e.other.color = [1, 0, 0, 1]}
-> In the bottom box goes this code (use onCollide):
- Code: Select all
e=>{e.other.density = .01;
e.other.color = [0, 1, 1, 1]}
This is a Density Engine. If you move the above construction onto a box that is fixated to the background, it will still work fine. If you un-fixate the box from the background and drop/fixate it onto a car with no motors on the wheels, it will not only spin but also push the car. See the Early Aircraft Collab for applications of this.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: Thyme help please?
Thanks someone else and i was trying to make a weight engine but this works better and my weight engine was not very powerful
I won't be on the forums much for a while. But maybe once in a while.
-

HavingPhun - Posts: 178
- Joined: Sun Feb 06, 2011 10:42 pm
5 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest




