VE Lua Documentation

Press F to search!

updateCorePhysicsStepEnabled

Definition


-- @/lua/vehicle/main.lua:55

function updateCorePhysicsStepEnabled()
  -- print("Controller: " .. tostring(controller.isPhysicsStepUsed()))
  -- print("Powertrain: " .. tostring(powertrain.isPhysicsStepUsed()))
  -- print("Wheels: " .. tostring(wheels.isPhysicsStepUsed()))
  -- print("Thrusters: " .. tostring(thrusters.isPhysicsStepUsed()))
  -- print("Hydros: " .. tostring(hydros.isPhysicsStepUsed()))
  -- print("Beamstate: " .. tostring(beamstate.isPhysicsStepUsed()))
  -- print("---")
  obj:setPhysicsStepEnabled(controller.isPhysicsStepUsed() or powertrain.isPhysicsStepUsed() or wheels.isPhysicsStepUsed() or thrusters.isPhysicsStepUsed() or hydros.isPhysicsStepUsed() or beamstate.isPhysicsStepUsed() or protocols.isPhysicsStepUsed() or extensionsHook ~= nop)
end

Callers

@/lua/vehicle/thrusters.lua
    M.update = nop
    updateCorePhysicsStepEnabled()
  end
  M.update = update
  updateCorePhysicsStepEnabled()
end
  M.update = update
  updateCorePhysicsStepEnabled()
end
  M.update = update
  updateCorePhysicsStepEnabled()
end
@/lua/vehicle/main.lua
  extensionsHook = extensions.hook
  updateCorePhysicsStepEnabled()
end
  detectGlobalWrites()
  updateCorePhysicsStepEnabled()
  profilerPopEvent("3.8 init - last stage")
  powertrain.sendTorqueData()
  updateCorePhysicsStepEnabled()
@/lua/vehicle/beamstate.lua
    delayedPrecompTorsionbar = nil
    updateCorePhysicsStepEnabled()
  end