water spawning rocket

Post your tutorials here.

water spawning rocket

Postby davidz40 » Wed Sep 23, 2009 9:52 am

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.
Phundamentalist
User avatar
davidz40
 
Posts: 438
Joined: Sun Sep 06, 2009 10:30 am

Re: water spawning rocket

Postby Versieon » Thu Sep 24, 2009 12:11 am

Wat do you mean by "they destroy themselves quickly after leaving the rocket." concerning the rocket. how do they destroy themselfs?
User avatar
Versieon
 
Posts: 375
Joined: Tue Sep 01, 2009 4:45 pm

Re: water spawning rocket

Postby Fujitsu » Thu Sep 24, 2009 12:38 am

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?
Image
Gimmie money.
User avatar
Fujitsu
 
Posts: 328
Joined: Tue Sep 01, 2009 12:28 am
Location: Canada

Re: water spawning rocket

Postby Versieon » Thu Sep 24, 2009 11:24 pm

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!!
User avatar
Versieon
 
Posts: 375
Joined: Tue Sep 01, 2009 4:45 pm

Re: water spawning rocket

Postby Way2crazy » Sat Sep 26, 2009 5:14 am

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
Image
Image
neeed more help? Pm me :^)

My site/forum:
http://way2crazy.iforums.us/

Image


^a ninja was here
User avatar
Way2crazy
 
Posts: 20
Joined: Mon Sep 21, 2009 4:38 am

Re: water spawning rocket

Postby Fujitsu » Sat Sep 26, 2009 6:03 am

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.
Image
Gimmie money.
User avatar
Fujitsu
 
Posts: 328
Joined: Tue Sep 01, 2009 12:28 am
Location: Canada

Re: water spawning rocket

Postby standardtoaster » Sat Sep 26, 2009 8:16 am

It's not CPH it's SPH.
User avatar
standardtoaster
 
Posts: 606
Joined: Mon Aug 31, 2009 7:57 pm

Re: water spawning rocket

Postby Fujitsu » Sat Sep 26, 2009 8:36 am

It's not CPH it's SPH.


I got it right on the first post. :oops:
Image
Gimmie money.
User avatar
Fujitsu
 
Posts: 328
Joined: Tue Sep 01, 2009 12:28 am
Location: Canada

Re: water spawning rocket

Postby standardtoaster » Sat Sep 26, 2009 3:11 pm

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

Re: water spawning rocket

Postby Fujitsu » Sat Sep 26, 2009 7:41 pm

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.
Image
Gimmie money.
User avatar
Fujitsu
 
Posts: 328
Joined: Tue Sep 01, 2009 12:28 am
Location: Canada

Re: water spawning rocket

Postby Way2crazy » Mon Sep 28, 2009 2:52 am

(no space between vaporize and time)

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
Image
Image
neeed more help? Pm me :^)

My site/forum:
http://way2crazy.iforums.us/

Image


^a ninja was here
User avatar
Way2crazy
 
Posts: 20
Joined: Mon Sep 21, 2009 4:38 am

Re: water spawning rocket

Postby Fujitsu » Mon Sep 28, 2009 6:11 am

Way2crazy wrote:(no space between vaporize and time)

but thnks guys!!!

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


Correct.
Image
Gimmie money.
User avatar
Fujitsu
 
Posts: 328
Joined: Tue Sep 01, 2009 12:28 am
Location: Canada


Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest