I´m noob at programming and I would like to have rotating offset discs on cultivator. As this would be very hard to jbeam (and would require good hardware to run), I think best solution is animated texture. But I don´t want it to rotate always, I would like to get rotating speed from rear wheel wheelspeed (which is jbeamed). I have tried doing a lua but it didnt work.
That sounds like a good idea. But I still don´t know how to make them rotate at same rpm as rear wheel/drum. --- Post updated --- Edit: I took beacon.lua and modified it and in works Code: -- This Source Code Form is subject to the terms of the bCDDL, v. 1.1. -- If a copy of the bCDDL was not distributed with this -- file, You can obtain one at http://beamng.com/bCDDL-1.1.txt local M = {} local function init() electrics.values.discs = 1 end local function updateGFX(dt) local wheelspeed = electrics.values.wheelspeed electrics.values.discs = ((electrics.values.discs + (dt * wheelspeed * 320)) % 360) or 0 end -- public interface M.updateGFX = updateGFX M.onInit = init M.onReset = init return M