Author Topic: Gravity  (Read 1542 times)

0 Members and 1 Guest are viewing this topic.

I'm back and ready to edit FS2 again
Well I havent been around since the code has been released and i need to catch up with whats happening
I want to create gravity for an object and I dont have a clue where to start. I have a very basic understanding of C++ (am learning more every day) and I know a fair bit about how to edit using pretty well all FS2 editors (unless theres been new ones created in the last year (if so PLEASE tell me where to get them))
I would really apreciate any help in locating that which affects a ship or object locally e.g the old Planet01 affect from FS1 might help. This is just a stab in the dark(By the way is he still around, Dark is probably someone who might know how to help)
Gravity would really inprove the game play immencely especially if you could make it local to the object. I created mountains and a massive city for FS2 last year and I can fairly easily do that again but I want gravity.
If anyone can help even a little bit it would be great.
Firehawk

 

Offline penguin

  • Eudyptes codus
  • 28
  • Still alive.
Implementing gravity in space would be pointless, since you're typically so far from any significant gravity wells.

Assuming you're sub-orbital (you mentioned mountains and cities) also poses some challenges, since FS2 doesn't really use newtonian physics.  An easy hack would be to apply some negative value to the Y-coordinate velocity (in world space, not relative to the ship).  

This would make flying a little odd: since conventional aircraft have wings that provide lift, and FS2 craft just have the big thrusters at the back pointing through the Z-axis, you'd need to fly up at an angle to go in a straight line.
your source code slave

  

Offline Stryke 9

  • Village Person
    Reset count: 4
  • 211
And would get shot to bits in the process. Though I imagine someone could make some dedicated atmospheric-type ships where the propulsion thingy is at an angle to the viewing camera. Haven't looked at the POF-editor in a while, so I'm not sure that's possible, but I don't see why not...