1. Stuck, Having problems with creating your mod? Let us help you: Mod Support

Unsolved Can physics be simulated at faster speeds?

Discussion in 'Mod Support' started by HDR, Sep 11, 2018.

  1. HDR

    HDR
    Expand Collapse

    Joined:
    Oct 15, 2015
    Messages:
    229
    While poking around in the bullettime lua i found some references to fast motion, changing values to allow 2x speed in the lua itself prompts a message saying the game is running faster than real time, but the actual simulation speed does not change, is this limited in the engine itself?
     
  2. Ai'Torror

    Ai'Torror
    Expand Collapse

    Joined:
    Aug 29, 2015
    Messages:
    1,653
    You can run the game at 2x speed or whatever it is. The integrated performance testing does use x2 speed, but to allow the game to use that with key bindings and such you would most likely have to do some lua stuff to add an binding to turn it on. Not sure about physics stability at 2x speed.
     
    • Agree Agree x 1
  3. Spiicy

    Spiicy
    Expand Collapse

    Joined:
    Sep 8, 2016
    Messages:
    3,305
    I'm sure its possible, but just because its BeamNG I don't think the game would enjoy it. Your computer would probably die.
     
  4. HDR

    HDR
    Expand Collapse

    Joined:
    Oct 15, 2015
    Messages:
    229
    I've edited the lua to allow for 2x speed, but as far as i can tell, the simulation speed does not change, even if it says it does.
     
    • Informative Informative x 2
  5. stenyak

    stenyak
    Expand Collapse
    Staff Member

    Joined:
    Aug 6, 2012
    Messages:
    1,119
    That option allows fast-forwarding the replays, it has nothing to do with the physics simulation.
     
    • Like Like x 1
    • Informative Informative x 1
  6. HDR

    HDR
    Expand Collapse

    Joined:
    Oct 15, 2015
    Messages:
    229
    I see, so is there no way to run physics simulation at 2x?
     
    • Agree Agree x 1
  7. stenyak

    stenyak
    Expand Collapse
    Staff Member

    Joined:
    Aug 6, 2012
    Messages:
    1,119
    It's not supported.
     
    • Informative Informative x 2
  8. Spiicy

    Spiicy
    Expand Collapse

    Joined:
    Sep 8, 2016
    Messages:
    3,305
    I think it would be possible, but it would require a lot of change in the code and other things.
     
  9. Ai'Torror

    Ai'Torror
    Expand Collapse

    Joined:
    Aug 29, 2015
    Messages:
    1,653
  10. stenyak

    stenyak
    Expand Collapse
    Staff Member

    Joined:
    Aug 6, 2012
    Messages:
    1,119
    This is an unsupported feature. You may attempt to use it; it may or may not work, and it may or may not stop working in the future, so use at your own risk, and don't rely on it.
    As for how it is used exactly, I am not familiar with it, but @Diamondback may be able to assist.
     
    • Like Like x 2
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice