Update Static Object Collision Box After Updating the Object's Position

Discussion in 'Programming' started by angelo234, Oct 26, 2020.

  1. angelo234

    angelo234
    Expand Collapse
    Programmer
    BeamNG Team

    Joined:
    Aug 11, 2017
    Messages:
    540
    I am creating a scenario that uses a Lua function to set an object's position, but it doesn't automatically update its collision box. And so I use the be:reloadStaticCollision(boolean debug) function to update it. But because there are so many static objects in my scenario, it causes a momentary lag spike. I was wondering if there is a way to only update a single static object's collision box to try and prevent this. Thanks in advance! :)
     
  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