[Mod]Ultralight Trike[trike]

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

[Mod]Ultralight Trike[trike]

by apercy » Post

Ultralight Trike

Image

Github:
https://github.com/APercy/trike

Download:
https://github.com/APercy/trike/release ... /trike.zip

This mod tries to implement some flight physics, using the mobkit mod.
In order to fly, it is necessary to first supply the aircraft with biofuel.
Then with a gallon selected, punch it against the trike.
You can use 10 of them to fill the tank. See the fuel gauge on the aircraft
panel (right below, with a green F). To embark, click with the right button.
While the machine is off, it is possible to move it using the sneak and jump keys (shift an space).
W ans S move the wing, to increase and decrease the attack angle (it's important).
Right and Left (A and D) controls the yaw.

Then to fly, start the engine with the special key E. Press jump (space)
to increase the engine power (check the panel for the indicator marked with a yellow P).
Adjust to the maximum. Push the wing (W) and wait for speed to lift.

During the cruise flight, it is ideal to keep the power setting below the red range,
to control fuel consumption. Use the climb indicator to stabilize altitude,
as at high altitudes you lose sustentation and you spend more fuel.

For landing, a traffic circuit can be made, lowering the power and increasing
the angle of attack of the wing to reduce speed and altitude (acting as a flap).
Or to force the descent by pulling the wing and pushing it forward when
approaching, regulating the speed.

Care must be taken with impacts, as it causes damage to the aircraft, pilot and the passenger,
so training landings is essential.

To brake the aircraft, use the sneak (shift) key until it comes to a complete stop.
Do not stop the engine before this, or it will reverse when it stops

To repair damages, you can use the repair tool. It subtracts steel ingots to increase
airplane hp.

It can be painted using dye of any color you want, you must punch the airplane with the dye.

If you want to carry a passenger, the pilot must seat first, so the passenger do a right click to go on board.

Code: LGPLv3, textures and models: CC 0
Mod dependencies: default, mobkit, biofuel
Attachments
screenshot_20210327_071343.png
(410.35 KiB) Not downloaded yet
Last edited by apercy on Mon Apr 12, 2021 19:33, edited 7 times in total.

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

little update on detach player after dead

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

and another: damage reduced to half

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

updated: added a step height support of 0.5

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

and another correction on impact on ground =)

User avatar
Nathan.S
Member
Posts: 1079
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: [Mod]Ultralight Trike[trike]

by Nathan.S » Post

Looks very cool, will have to try it out.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

MisterE
Member
Posts: 276
Joined: Sun Feb 16, 2020 21:06
GitHub: MisterE123
IRC: MisterE
In-game: MisterE

Re: [Mod]Ultralight Trike[trike]

by MisterE » Post

This is amazing from the description. I would love to see this on a multiplayer server.

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

MisterE wrote:
Thu Mar 11, 2021 03:11
This is amazing from the description. I would love to see this on a multiplayer server.
Thank you!

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Today I fixed something that bothered me a bit, some glitches during the lift. On the method I use to calculate the lift, I do the sum of the lift acceleration vector with the plane acceleration vector (vector.add). And the turbulence happens. But if I sum each element (x, y, z) at time, the glitch vanish... Very strange

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Lift adjusted again, now I saw my mistake, I forgot to compensate the fuselage acceleration with the wing vector.

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Lift updated

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

To resolve that bumpy behavior, some changes was made, but the more important: reduced max speed (but decreased the fuel consumption)

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Improved physics

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Updates: now supports the biofuel mod from ContentDB by Lokrates. But only using the bottle of biofuel
Another fix in bump behavior
On destruction it drops some materiais and the full wing

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Updated:
Now it uses all the fuel recipients of Lokrates biofuel mod.
And improved commands on online game

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Now supports passengers. Passengers can attach with right click when pilot is on airplane

Image
Attachments
screenshot_20210324_194455.png
(408.48 KiB) Not downloaded yet

MisterE
Member
Posts: 276
Joined: Sun Feb 16, 2020 21:06
GitHub: MisterE123
IRC: MisterE
In-game: MisterE

Re: [Mod]Ultralight Trike[trike]

by MisterE » Post

Wow, this is really neat. I have played around with this, and it made for a nice time to fly around :D

Keep it up! I could suggest adding other small aircraft types: including a hang glider, a parasail ultralight, a small cessna, a remote-control drone :D

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

MisterE wrote:
Thu Mar 25, 2021 01:49
Wow, this is really neat. I have played around with this, and it made for a nice time to fly around :D

Keep it up! I could suggest adding other small aircraft types: including a hang glider, a parasail ultralight, a small cessna, a remote-control drone :D
Thank you!
The gliders are in my plan for soon! For the cesna I will improve the flight dynamics ;)

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Little update: improved passenger ejection when the airplane is grounded or underwater

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Bug fix: player detection after collision

User avatar
Nathan.S
Member
Posts: 1079
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: [Mod]Ultralight Trike[trike]

by Nathan.S » Post

Very fun to fly around. The bar thing that you'd hold on to control the wings gets in the way of the gauges sometimes. Could those maybe be turned into a HUD so they wouldn't be obscured?
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Nathan.S wrote:
Sun Mar 28, 2021 17:28
Very fun to fly around. The bar thing that you'd hold on to control the wings gets in the way of the gauges sometimes. Could those maybe be turned into a HUD so they wouldn't be obscured?
I dont like the idea of using HUD, it's why I made all controls in the 3D model, but I'll think a way to put it optionally using a shortkey to activate... thank you

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

Update: little fix on smooth

User avatar
apercy
Member
Posts: 217
Joined: Wed Mar 25, 2020 16:31
GitHub: APercy
In-game: APercy
Location: Pinheiral - RJ - Brazil

Re: [Mod]Ultralight Trike[trike]

by apercy » Post

another fix :/

User avatar
1faco
Member
Posts: 49
Joined: Tue Sep 08, 2020 20:32
GitHub: minefaco
In-game: faco

Re: [Mod]Ultralight Trike[trike]

by 1faco » Post

i'm really a fan from all of your vehicles. Nice work, +10 mese for you!

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests