VE Lua Documentation

Press F to search!

setNode

Definition


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

Callers

@/lua/ge/extensions/editor/flowgraph/main.lua

    self.fgEditor.nodePreviewPopup:setNode(nil)
    -- main dockspace for graph tabs - so they always are connected to the menu-"window"
@/lua/ge/extensions/editor/flowgraph/nodePreview.lua

function C:setNode(node)
  self.hover = node
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
    if result.type == 'node' then
      hoverFun = function() self.fgEditor.nodePreviewPopup:setNode(result.info) end
    end
    if not menuPos then self.mgr:dragDropSource("NodeDragDropPayload", node) end
    self:arrowHelper(cursor, itemSize, true, function() self.fgEditor.nodePreviewPopup:setNode(node) end)
  end
@/lua/vehicle/jbeam/stage2.lua
    local pos = node.pos
    obj:setNode(node.cid, pos.x, pos.y, pos.z, nodeWeight, ntype, frictionCoef, slidingFrictionCoef, node.stribeckExponent or 1.75, node.stribeckVelMult or 1, noLoadCoef, fullLoadCoef, loadSensitivitySlope, node.softnessCoef or 0.5, node.treadCoef or 0.5, node.tag or '', node.couplerStrength or math.huge, node.firstGroup or -1, selfCollision, collision, staticCollision, nodeMaterialTypeID)