Flying Objects?

Post Reply
dnywna
New member
Posts: 2
Joined: Thu Nov 24, 2011 23:41

Flying Objects?

by dnywna » Post

What I'd really like to see is propellers, balloons and sails. I want to be able to, with enough propellers and energy, lift my castle into the sky.

It wouldnt be that hard to code either - just calculate a "mass" of every structure then use high school physics to calculate then energy needed to lift it. You could even have the mass value increase by x for every y distance it travels to simulate the effects of gravity and balance of forces! You could also make it so that anything touching the ground will never move at all, allowing you to anchor things to the ground with blocks.

Stolen from /v/:

Image
Last edited by dnywna on Thu Nov 24, 2011 23:44, edited 1 time in total.

User avatar
xyz
Member
Posts: 450
Joined: Thu Nov 10, 2011 14:25

by xyz » Post

It is quite easy if you don't want to use smooth moving

randomproof
Member
Posts: 214
Joined: Thu Nov 17, 2011 06:31
Location: California, USA

by randomproof » Post

just calculate a "mass" of every structure
That would be the hardest thing to do. How would you determine if a block is part of a structure? I've thought of the idea of calculating weight of blocks and how much they could carry with the thought that large caves and structure could collapse if not properly designed. The problem I have is that the program would end up scanning huge amounts of blocks to try and find "ground level."

User avatar
xyz
Member
Posts: 450
Joined: Thu Nov 10, 2011 14:25

by xyz » Post

randomproof wrote:
just calculate a "mass" of every structure
That would be the hardest thing to do. How would you determine if a block is part of a structure? I've thought of the idea of calculating weight of blocks and how much they could carry with the thought that large caves and structure could collapse if not properly designed. The problem I have is that the program would end up scanning huge amounts of blocks to try and find "ground level."
DFS? With maximum depth predefined.

User avatar
Staffs
Member
Posts: 329
Joined: Thu Aug 04, 2011 13:16

by Staffs » Post

Just make your castle above block called *start* or smth :D.. So you cant lift that *start* And lifts everything which isnt *start*. I hope you get my point :D
I love mods :D

User avatar
Heinrich
Member
Posts: 27
Joined: Sat Jun 11, 2011 18:33

by Heinrich » Post

dnywna wrote: It wouldnt be that hard to code either
If it is that easy why don't you just write a patch over the weekend?

fake
New member
Posts: 6
Joined: Sun Nov 20, 2011 17:18

by fake » Post

I think calculating of mass is not the most difficult. First of all you need to remove all the blocks that belong to the castle, after that you need to create active object, and connect it to ballons.But now it is very hard, may be later.


Sorry for my bad english.
Sorry for my bad english.

dnywna
New member
Posts: 2
Joined: Thu Nov 24, 2011 23:41

by dnywna » Post

randomproof wrote:
just calculate a "mass" of every structure
That would be the hardest thing to do. How would you determine if a block is part of a structure? I've thought of the idea of calculating weight of blocks and how much they could carry with the thought that large caves and structure could collapse if not properly designed. The problem I have is that the program would end up scanning huge amounts of blocks to try and find "ground level."
Simplest way to do it would be to have any collection of blocks that isnt touching the generated ground be single structure maybe.
Or you could just allow users to designate them themselves?
Of course, neither of these would work at all for what you had in mind.
If it is that easy why don't you just write a patch over the weekend?
I might give it a go, but I'm not familiar at all with the Minetest code.

BetaKing
New member
Posts: 9
Joined: Sun Nov 27, 2011 18:18

by BetaKing » Post

In order to keep the flight of possibly large multi-block craft smooth, (IE not having the world track every single block as it moves) what If you had your flying - object as sort of an entity.

Image

-world shown as yellow,
-entity shown as red.

basically the blocks on/in the flying-object are not tracked by the same process/function/script as the rest of the world is, rather only the location and/or orientation of the entity is tracked.

The blocks in the entity are tracked by a script tied to the entity.

User avatar
sycam
Member
Posts: 24
Joined: Thu Jan 05, 2012 10:57
Location: matcham

by sycam » Post

well if it's so easy why doesn't write b patch an post it under mods
sycam industry's yesterdays technology today

sapier
Developer
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Post

In my opinion a clean way to implement moving large structures would be to shift them into their own cooridnate sytem and then only move center of that system.

Problems
1) need to detect which objects and nodes need to be shifted
2) implement child/parent coordinaion system
3) movement support for multiple child systems
4) nested coord system support?? (probably optional)

That AINT a small and easy change not difficult either but lots of work!
DON'T mention coding style!
(c) sapier all rights reserved

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests