Hydroplane sim
9 posts • Page 1 of 1
Hydroplane sim
Best plane simulator I can made ATM
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)
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)
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Hydroplane sim
From internals:
Wing force now with quadratic part of V
Density and structure:
Water wave sim is like that one:
Wing force now with quadratic part of V
Density and structure:
Water wave sim is like that one:
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Hydroplane sim
Propeller animation texture:
- Attachments
-
- 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...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Hydroplane sim
Just thrusters for the speed and angle of the plane?
Phundementalism?
Ain't nobody got thyme fo dat.
Ain't nobody got thyme fo dat.
-
mold999 - Posts: 225
- Joined: Sun Jan 02, 2011 1:35 am
- Location: [176436, 3763234]
Re: Hydroplane sim
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...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Hydroplane sim
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?
{(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.
Ain't nobody got thyme fo dat.
-
mold999 - Posts: 225
- Joined: Sun Jan 02, 2011 1:35 am
- Location: [176436, 3763234]
Re: Hydroplane sim
{(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...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Hydroplane sim
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?
can you help?
- jon_joy_1999
- Posts: 233
- Joined: Fri Dec 09, 2011 12:51 am
Re: Hydroplane sim
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...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
9 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests