Hi guys,
I have been using the gravity script , I think that was Vern's. Very nice.
I changed some values and got rid of the side walls, for some balloons falling and bouncing off each other.
It was a bit rushed and I never got the grip of changing the floor height ( I might have last time I used it but have forgotten if I did or not)
I should have posted last night while I was mucking with it also forgetting that three in the morning is good for US time zone and I may have got an answer in time to use it.
Anyway the issue was dropping the balloons at the right frame,
I wanted to drop them near the end of the sequence but ended up settling for the beginning,It was only an ecard for a family member so it didn't really matter that much.
I would love to get the hang of this script for professional use.
note I could get the balloons to sop bouncing in good time and preserve their' ballooniness'.
Here is the balloon gravity script and the gravity no walls script.
balloons plus no walls
Plus gravity no walls, we could make this thread a place to share variations of the script as it's pretty hard fiddling with those numbers when there's not much time, we then would have a gravity script preset database of sorts.
Thanks for any pointers.
Gravity
Moderators: Víctor Paredes, Belgarath, slowtiger
I'm also having trouble with my worm hole.....
I also put a simple balloons anme file in the zip too, note how the balloons won't fully stop their bouncing.
The gravity script would be awesome with an interface to change the values and to help explain which values can be changed without breaking the script.
I will assist with any menial task that might help achieve this, unfortunately code is not a strong point for me, but I can stand back and exclaim 'woooow' in appreciation.
Umm did I explain that this is 'voluntary'..... ok now hit me with the sarcasm... I deserve it.

I also put a simple balloons anme file in the zip too, note how the balloons won't fully stop their bouncing.
The gravity script would be awesome with an interface to change the values and to help explain which values can be changed without breaking the script.
I will assist with any menial task that might help achieve this, unfortunately code is not a strong point for me, but I can stand back and exclaim 'woooow' in appreciation.

Umm did I explain that this is 'voluntary'..... ok now hit me with the sarcasm... I deserve it.

I had always planned to add some kind of interface. I wouldn't object to anyone trying their hand at it though. My main hold up was where to store the "data" for the physics properties.
If it helps the size of the bone influences the "gravity". I haven't played with the script and ages and don't remember exactly how it worked.
-vern
If it helps the size of the bone influences the "gravity". I haven't played with the script and ages and don't remember exactly how it worked.

-vern
- synthsin75
- Posts: 10280
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
I assume it is this bit that needs the interface?
I have a rather large 'todo' list at the moment, but if no one else gets around to it (like in a matter of weeks or months
) I'll add an interface.
Vern, I'm not familiar with this script (never used it even). What data needs to be stored? I don't guess layer scripts can save a pref, huh?
Doh! I just realized this would require a new menu script for the interface. That script could save the prefs and write them to the layer script. Jeez, I may have to unvoluteer myself.

Code: Select all
layer.gravK = -0.007--0.005 --0.2 -- gravity
layer.dampK = 0.87 -- 0.88 -- lower numbers make more air resistance
layer.dampCollision = 1.7 -- 1.8 -- energy retained in collisions
layer.ballRadius = 0.08
layer.ballWidth = layer.ballRadius*2
layer.SH = 2.00
layer.SW = 1.3

Vern, I'm not familiar with this script (never used it even). What data needs to be stored? I don't guess layer scripts can save a pref, huh?
Doh! I just realized this would require a new menu script for the interface. That script could save the prefs and write them to the layer script. Jeez, I may have to unvoluteer myself.

