VE Lua Documentation

Press F to search!

screwBeam

Definition


-- @/=[C]:-1
function screwBeam(...)

Callers

@/lua/vehicle/powertrain/linearActuator.lua
  for _, cid in ipairs(device.actuatorBeams) do
    --screwBeam(int  outId, float torqueForce,    float speedLimit,  float slipForce, float helixAngleCos, float face1Cos, float face2Cos, float frictionForceStick, float frictionCoef, float slipSpeedLimit, float minExtend, float maxExtend)
    velocity = velocity + obj:screwBeam(cid, actuatorForce * invCidCount, device.speedLimit, math.huge, math.cos(device.leadAngle), 1, 1, device.frictionForce, 0.0, 0, device.minExtend, device.maxExtend)
    --screwBeam(int  outId, float torqueForce,    float speedLimit,  float slipForce, float helixAngleCos, float face1Cos, float face2Cos, float frictionForceStick, float frictionCoef, float slipSpeedLimit, float minExtend, float maxExtend)
    velocity = velocity + obj:screwBeam(cid, actuatorForce * invCidCount, device.speedLimit, math.huge, math.cos(device.leadAngle), 1, 1, device.frictionForce, 0.0, 0, device.minExtend, device.maxExtend)
    currentExtend = currentExtend + obj:getBeamLength(cid)