Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Kobrar44 on February 19, 2009, 06:14:50 pm

Title: Gravitation?
Post by: Kobrar44 on February 19, 2009, 06:14:50 pm
In FRED in ship editor in misc there's "Affected by Gravity". What's this? How to use it? What does it do? I tried it and nothing.
Title: Re: Gravitation?
Post by: Snail on February 19, 2009, 06:16:17 pm
Currently it has no effect. ;)


The code that makes it work is still WIP.
Title: Re: Gravitation?
Post by: Sololop on February 19, 2009, 09:13:19 pm
What will it do eventually? Pull you towards planets? Or large ships?
Title: Re: Gravitation?
Post by: dragonsniper on February 20, 2009, 02:43:03 pm
That would be awesome. If that's what it is (in the future), then I'm using it for sure. :)
Title: Re: Gravitation?
Post by: Droid803 on February 20, 2009, 05:47:05 pm
Or would it be like the thing that happens if you have a GTD Planet and it goes 'too close to planet' or something?
Title: Re: Gravitation?
Post by: JGZinv on February 20, 2009, 06:19:26 pm
Me and Bax came up with a GravCube™ that emulates the in game effects of gravity,
but it currently only works in his builds. Probably could use some refinement,
however it serves it's purpose.

Hopefully the code freeze will end and we can play with it some more.
Title: Re: Gravitation?
Post by: Aardwolf on March 05, 2009, 03:13:46 am
The problem with gravitation is that the effects of it wouldn't show up unless it were applied unevenly (that is, the direction and distance from the center of mass of the affected ship to the gravity source were not approximately equal)... so for planets, it'd basically be meaningless, and it wouldn't make sense to have any [significant] gravity from something with small enough size that you could fly around it in any reasonable time.
Title: Re: Gravitation?
Post by: Scotty on March 05, 2009, 09:28:36 pm
Well, not really true.  In free fall, if two masses come into close proximity, a new 'center of gravity' is established between them.  It sort of stabilizes and orients the objects.  Besides, think how cool it would be to curve a missle or primary around a ship and into a target?
Title: Re: Gravitation?
Post by: karajorma on March 06, 2009, 02:07:59 am
Cool, maybe. Realistic, not in the slightest.

Even the really big ships in freespace would have next to no effect on missiles. Not unless they're made out of neutronium or something.
Title: Re: Gravitation?
Post by: Black Wolf on March 08, 2009, 02:56:34 pm
Cool, maybe. Realistic, not in the slightest.

Even the really big ships in freespace would have next to no effect on missiles. Not unless they're made out of neutronium or something.

The kind of damage they supposedly soak up makes that not entirely unlikely. :D
Title: Re: Gravitation?
Post by: Herra Tohtori on March 08, 2009, 04:50:36 pm
Well... having subspace vortices cause gravitational effects, and being able to orbit planets (provided that models of sufficient size would be possible some day) would be pretty cool. Quite obviously it would require FREDders to do a bit of homework to set the ships to a stable orbit from the beginning of the mission... and ships jumping in would need to aquire orbital velocity upon emerging from the vortex. Or the vortices should sync to the orbital velocity. And obviously all this would require full newtonian flight model, and I shudder to think of what changes would be eneded for the AI to make the computer controlled ships behave in any comprehensible way instead of becoming atmo pizzas in first two minutes of the mission.

...so yeah, it would be almost impossible to do in a way that doesn't make everyone pull their teeth off and go play Orbiter instead for relaxing afternoon activity. At full difficulty. :p
Title: Re: Gravitation?
Post by: Aardwolf on March 08, 2009, 07:02:21 pm
You couldn't do any of that stuff without getting rid of the mysterious 'drag' force that FreeSpace has (and effectively making the game newtonian)