Page 1 of 1

water spawning rocket

PostPosted: Wed Sep 23, 2009 9:52 am
by davidz40
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.
Image

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]})}
Image

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.

Image

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

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

Re: water spawning rocket

PostPosted: Thu Sep 24, 2009 12:11 am
by Versieon
Wat do you mean by "they destroy themselves quickly after leaving the rocket." concerning the rocket. how do they destroy themselfs?

Re: water spawning rocket

PostPosted: Thu Sep 24, 2009 12:38 am
by Fujitsu
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?

Re: water spawning rocket

PostPosted: Thu Sep 24, 2009 11:24 pm
by Versieon
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!!

Re: water spawning rocket

PostPosted: Sat Sep 26, 2009 5:14 am
by Way2crazy
can you explain where that would be?

Re: water spawning rocket

PostPosted: Sat Sep 26, 2009 6:03 am
by Fujitsu
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).

Re: water spawning rocket

PostPosted: Sat Sep 26, 2009 8:16 am
by standardtoaster
It's not CPH it's SPH.

Re: water spawning rocket

PostPosted: Sat Sep 26, 2009 8:36 am
by Fujitsu
It's not CPH it's SPH.


I got it right on the first post. :oops:

Re: water spawning rocket

PostPosted: Sat Sep 26, 2009 3:11 pm
by standardtoaster
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. ¬_¬

Re: water spawning rocket

PostPosted: Sat Sep 26, 2009 7:41 pm
by Fujitsu
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.

Re: water spawning rocket

PostPosted: Mon Sep 28, 2009 2:52 am
by Way2crazy
(no space between vaporize and time)

but thnks guys!!!

and SPH.vaporizetime=+inf would reset it correct?

Re: water spawning rocket

PostPosted: Mon Sep 28, 2009 6:11 am
by Fujitsu
Way2crazy wrote:(no space between vaporize and time)

but thnks guys!!!

and SPH.vaporizetime=+inf would reset it correct?


Correct.