water spawning rocket
12 posts • Page 1 of 1
water spawning rocket
Create a tall box and set it's collision group to A only (im musn't collide with water). It's base of the rocket.
Then create second box on the top of it, set it's collision to "collides with water" only, and set it's attraction to something like -10000.
Create a small box and a circle on the bottom of the rocket, set their collision group to B.
Fixate the box to the base. Put a +inf power 600 rpm hinge on the circle in that manner so it will collide rapidly with the box.
Open the Scripting menu of the circle,
change the onCollide of the circle to: (e)=>{Scene.addWater({vecs = [e.pos]})}
The basic rocket is complete, but's very unstable. Let's fix this
Using a polygon drawing tool, create finns. Set their airfrictionmult in scripting menu to high value (100+). They are supposed only to stabilise the rocket, so they don't need any collision group. Attach them to the rocket body by hinges.
Let's make the rocket start after pressing a key.
Select the fins without selecting hinges attaching them and move them to inside of the rocket. Then create a box, make it opaque and place it on the rocket. Fixate it to the body, finns and spawning circle. Set some destroy key to it.
Now by pressing that key, yo'll start the engine and extend the fins.
The rockets like this can be stacked on each other to make multistage rockets. Just extend the "blocking" box beyond the bottom of the stage and fixate it to the previous stage.
Multistage rockets need only one water repelling box on the top. Using many boxes can cause stability issues.
Used water particles can be destroyed by killer, but in most causes it's not necessary since they destroy themselves quickly after leaving the rocket.
Then create second box on the top of it, set it's collision to "collides with water" only, and set it's attraction to something like -10000.
Create a small box and a circle on the bottom of the rocket, set their collision group to B.
Fixate the box to the base. Put a +inf power 600 rpm hinge on the circle in that manner so it will collide rapidly with the box.
Open the Scripting menu of the circle,
change the onCollide of the circle to: (e)=>{Scene.addWater({vecs = [e.pos]})}
The basic rocket is complete, but's very unstable. Let's fix this
Using a polygon drawing tool, create finns. Set their airfrictionmult in scripting menu to high value (100+). They are supposed only to stabilise the rocket, so they don't need any collision group. Attach them to the rocket body by hinges.
Let's make the rocket start after pressing a key.
Select the fins without selecting hinges attaching them and move them to inside of the rocket. Then create a box, make it opaque and place it on the rocket. Fixate it to the body, finns and spawning circle. Set some destroy key to it.
Now by pressing that key, yo'll start the engine and extend the fins.
The rockets like this can be stacked on each other to make multistage rockets. Just extend the "blocking" box beyond the bottom of the stage and fixate it to the previous stage.
Multistage rockets need only one water repelling box on the top. Using many boxes can cause stability issues.
Used water particles can be destroyed by killer, but in most causes it's not necessary since they destroy themselves quickly after leaving the rocket.
Phundamentalist
-
davidz40 - Posts: 438
- Joined: Sun Sep 06, 2009 10:30 am
Re: water spawning rocket
Wat do you mean by "they destroy themselves quickly after leaving the rocket." concerning the rocket. how do they destroy themselfs?
-
Versieon - Posts: 375
- Joined: Tue Sep 01, 2009 4:45 pm
Re: water spawning rocket
You can set it to be if Algodoo/Phun water particles are left idle for too long, they will disappear to reduce lag. You can change the idle time with SPH.vaporizeTime. It's a float set to +inf by default, I thought, though?
-
Fujitsu - Posts: 328
- Joined: Tue Sep 01, 2009 12:28 am
- Location: Canada
Re: water spawning rocket
I thought that was what it was, but ive not had good resposes from others if i change something in the config.
other wise, great tut!!
other wise, great tut!!
-
Versieon - Posts: 375
- Joined: Tue Sep 01, 2009 4:45 pm
Re: water spawning rocket
can you explain where that would be?
Thymer... Sorta :/
Like my avatar? Google it: gif it's pretty cool, just get the original sorce and put it for the URL of a pic like this:
http://www.imitationpickles.org/galcon/ ... /zarah.gif
neeed more help? Pm me :^)
My site/forum:
http://way2crazy.iforums.us/
^a ninja was here
Like my avatar? Google it: gif it's pretty cool, just get the original sorce and put it for the URL of a pic like this:
http://www.imitationpickles.org/galcon/ ... /zarah.gif
neeed more help? Pm me :^)
My site/forum:
http://way2crazy.iforums.us/
^a ninja was here
-
Way2crazy - Posts: 20
- Joined: Mon Sep 21, 2009 4:38 am
Re: water spawning rocket
Way2crazy wrote:can you explain where that would be?
Hit the tilde key (~) to bring down the console, and then type SPH.vaporize time. A message should come up that says Value=+inf Default=+inf. If you want to change the value, type SPH.vaporizetime=(your time here).
Last edited by Fujitsu on Sat Sep 26, 2009 8:35 am, edited 1 time in total.
-
Fujitsu - Posts: 328
- Joined: Tue Sep 01, 2009 12:28 am
- Location: Canada
Re: water spawning rocket
It's not CPH it's SPH.
-
standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: water spawning rocket
Fujitsu wrote:Way2crazy wrote:can you explain where that would be?
Hit the tilde key (~) to bring down the console, and then type SPH.vaporize time. A message should come up that says Value=+inf Default=+inf. If you want to change the value, type SPH.vaporizetime=(your time here).
I was talking about this post before you edited it. ¬_¬
-
standardtoaster - Posts: 606
- Joined: Mon Aug 31, 2009 7:57 pm
Re: water spawning rocket
I was talking about this post before you edited it. ¬_¬
I can't give false information to people. Therefore, that post had to be edited to be correct.
-
Fujitsu - Posts: 328
- Joined: Tue Sep 01, 2009 12:28 am
- Location: Canada
Re: water spawning rocket
(no space between vaporize and time)
but thnks guys!!!
and SPH.vaporizetime=+inf would reset it correct?
but thnks guys!!!
and SPH.vaporizetime=+inf would reset it correct?
Thymer... Sorta :/
Like my avatar? Google it: gif it's pretty cool, just get the original sorce and put it for the URL of a pic like this:
http://www.imitationpickles.org/galcon/ ... /zarah.gif
neeed more help? Pm me :^)
My site/forum:
http://way2crazy.iforums.us/
^a ninja was here
Like my avatar? Google it: gif it's pretty cool, just get the original sorce and put it for the URL of a pic like this:
http://www.imitationpickles.org/galcon/ ... /zarah.gif
neeed more help? Pm me :^)
My site/forum:
http://way2crazy.iforums.us/
^a ninja was here
-
Way2crazy - Posts: 20
- Joined: Mon Sep 21, 2009 4:38 am
Re: water spawning rocket
Way2crazy wrote:(no space between vaporize and time)
but thnks guys!!!
and SPH.vaporizetime=+inf would reset it correct?
Correct.
-
Fujitsu - Posts: 328
- Joined: Tue Sep 01, 2009 12:28 am
- Location: Canada
12 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest