Author Topic: Gravity - PS World Physics  (Read 1067 times)

novacadian

  • Hydlaa Notable
  • *
  • Posts: 962
    • View Profile
Gravity - PS World Physics
« on: January 25, 2011, 07:23:02 pm »

My thoughts are to work on a simple space ship trader application to tinker with the PS game engine. Something along the lines of Starship Trader only in graphic form. It seemed that such an application had the advantage of not competing with PS, the Game, in any way. It also seems attractive in that the map would be a fairly simplistic one; mostly a black void with occasional spherical objects (planets) to get things up and running. There are also many Blender spaceship objects available to use under the Creative Commons license system.

That said, my interest is to know if game physics can be turned off to allow movement in all directional axes (x,y and z) or if there is the equivalent of flying ability; which could be given to spaceship objects in order to be able to move on all axes?

The closest thread that could be found on on this issue was never answered; so no attempt was made to bump it.  8)

Any insights would be appreciated.

- Nova


RlyDontKnow

  • Associate Developer
  • Hydlaa Citizen
  • *
  • Posts: 403
    • View Profile
Re: Gravity - PS World Physics
« Reply #1 on: January 25, 2011, 10:55:55 pm »
the gravity can be tuned somehow, unfortunately I don't remember where atm, but you'd want to set that to 0.
once that's done, it'd be a matter of defining your movement modes accordingly (you need one which makes you move along the y axis for sure - in both directions).

novacadian

  • Hydlaa Notable
  • *
  • Posts: 962
    • View Profile
Re: Gravity - PS World Physics
« Reply #2 on: January 26, 2011, 04:56:30 am »
Thanks Rly, that's great news.

- Nova

[ Edit - Feb02/11 - It looks the gravity control can be found in the following areas of the code:

development/planeshift/src/common/engine/colldet.cpp (line 63)
development/planeshift/src/common/engine/linmove.cpp (line 535 and 1169)

]

[ Edit - Feb03/11 - By changing the values of  19.6f to 0.0f at line 1169 of linmove.cpp and 19.2f to 0.0f at line 63 of colldet.cpp the gravity has been removed. ]
« Last Edit: February 03, 2011, 05:29:26 am by novacadian »