Hydroplane sim

Discuss scenes and videos made with Algodoo.

Hydroplane sim

Postby Kilinich » Sun Jan 20, 2013 10:21 pm

Best plane simulator I can made ATM :thumbup:

Rating: rated 7.5
Filesize: 0.62 MB
Comments: 15
Ratings: 8
download


I'll add automatic score for some tricks, but you can try to make it now!

1) Climb to 100m for less than 50 sec of sim.time (STOL Master award)
2) Return to start pos (upside down) for less than 3 minutes (Reverse Master award)
3) Touch inside cave "roof" with your tail with no damage (Cave explorer award)
4) Survive complete loop starting from altitude less than 10 meters (Loop master award)
5) Break aircraft in flight with high G force maneuver (Kamikadze award) :D
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Hydroplane sim

Postby Kilinich » Sun Jan 20, 2013 11:26 pm

From internals:
Wing force now with quadratic part of V

Density and structure:
Image

Water wave sim is like that one:
Rating: rated 6.3
Filesize: 37.49 kB
Comments: 5
Ratings: 4
download
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Hydroplane sim

Postby Kilinich » Mon Jan 21, 2013 9:36 am

Propeller animation texture:
Attachments
prop-ani.png
Can be used with scene.my.ATX tech I invent before.
prop-ani.png (13.35 KiB) Viewed 2133 times
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Hydroplane sim

Postby mold999 » Mon Jan 21, 2013 6:43 pm

Just thrusters for the speed and angle of the plane?
Phundementalism?

Ain't nobody got
thyme fo dat.
User avatar
mold999
 
Posts: 225
Joined: Sun Jan 02, 2011 1:35 am
Location: [176436, 3763234]

Re: Hydroplane sim

Postby Kilinich » Mon Jan 21, 2013 9:10 pm

mold999 wrote:Just thrusters for the speed and angle of the plane?

yes, 4 thrusters:
engine (thrust)
high wing (lift)
low wing (lift)
tail (pitch)

all with scripted power depends on velocity and angle.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Hydroplane sim

Postby mold999 » Mon Jan 21, 2013 9:20 pm

Some questions about:

{(Scene.entityByGeomID((readable(entity)).geom))._lift}

Scene.entityByGeomID? What does this mean? Also the (readable(entity)).geom, I am confused about.

For the main engine, what is Scene.my.spd? I can understand scene.my.power, but why have 2 variables?
Phundementalism?

Ain't nobody got
thyme fo dat.
User avatar
mold999
 
Posts: 225
Joined: Sun Jan 02, 2011 1:35 am
Location: [176436, 3763234]

Re: Hydroplane sim

Postby Kilinich » Tue Jan 22, 2013 7:36 am

{(Scene.entityByGeomID((readable(entity)).geom))._lift}
Scene.entityByGeomID? What does this mean? Also the (readable(entity)).geom, I am confused about.

That's the way to get to geom's variables from thruster's code.
First ((readable(entity)).geom) get geomID from thruster itself
and second (Scene.entityByGeomID) find geom with that geomID.

For the main engine, what is Scene.my.spd? I can understand scene.my.power, but why have 2 variables?

scene.my.vel - vx,vy velocity
scene.my.spd - velocity projection on body direction vector (means speed of moving forward)
scene.my.power - engine thrust

The idea is propeller power decrease with speed because of air pressure, it can't generate any thrust on some max speed.
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Hydroplane sim

Postby jon_joy_1999 » Tue Jan 22, 2013 9:37 am

Kilinich, I'm working on a speed boat modification of your this scene, essentially scaling everything up or down, so the plane's pontoon becomes the boat, and the propeller becomes the boat's high speed propell+er, only one problem I'm having is the thruster is always on, depending on the throttle position. this means the boat experiences acceleration when the prop is outside of the water I'm trying to figure out how to have the thruster provide thrust only when the propeller is under water. I tried looking at your Inside polygon scripts, but I don't know how to use that code for this,

can you help?
Image
BSrac = BoincStats recent average credit
I'd rather be network computing.
jon_joy_1999
 
Posts: 233
Joined: Fri Dec 09, 2011 12:51 am

Re: Hydroplane sim

Postby Kilinich » Tue Jan 22, 2013 1:45 pm

Yes, if water is below y=0 then power could be
Code: Select all
power = {(Scene.entityByGeomID((readable(entity)).geom)).pos(1) < 0 ? {scene.my.power}: 0)}
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia


Return to Scenes

Who is online

Users browsing this forum: No registered users and 6 guests