A key binding to deactivate/activate simplified collisions physics

Discussion in 'Ideas and Suggestions' started by S.Ali.M, Sep 5, 2021.

  1. S.Ali.M

    S.Ali.M
    Expand Collapse

    Joined:
    Jan 12, 2021
    Messages:
    1,080
    Hello devs!
    Please add a key binding to deactivate/activate simplified collisions physics, next I can do this in a chase to have no lag when chasing: SCP activate, drive to get near to the suspect, SCP deactivate, hit the suspect, SCP activate again
    It takes too much time if I go to menu every time I wanna deactivate/activate SCP, so a key binding would be pretty useful
     
    #1 S.Ali.M, Sep 5, 2021
    Last edited: Sep 5, 2021
  2. Agent_Y

    Agent_Y
    Expand Collapse

    Joined:
    Jul 10, 2020
    Messages:
    7,120
    You can make it a mod, if it was in vanilla game, someone could click it by accident or bind something to it. Something so powerful shouldn't have a binding imo.
     
  3. S.Ali.M

    S.Ali.M
    Expand Collapse

    Joined:
    Jan 12, 2021
    Messages:
    1,080
    I looked at the game files to figure out the check box uses what code, but I couldn't. Do you know what lua code toggles SCP?


    (I accidentally wrote SCF instead SCP in the first post, fixed it now)
     
  4. angelo234

    angelo234
    Expand Collapse
    Junior Programmer
    BeamNG Team

    Joined:
    Aug 11, 2017
    Messages:
    433
    Here you go:
    Code:
    --true for regular collision physics
    --false for simplified collision physics
    be:setDynamicCollisionEnabled(false)
     
    • Like Like x 1
  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