Low pipe suggestion

Published on ● Video Link: https://www.youtube.com/watch?v=QKmKKahZ82Y



Duration: 0:07
233 views
3


If you make videos for low pipes, you can add a water particle when it breaks.

https://1drv.ms/u/s!AiICSE8M3GTNiSE15G5Lu3rpM4er?e=iJU90N
This is just the bare minimum needed to get the particle to work with a very basic beam and collision triangle...
Particle does not appear until a beam is broken

Control T to see the triangles


@TonyCartony helped me a while back with this particular LUA

local M = {}

local wantedBeam = -1
local a0


local function onReset()
wantedBeam = -1

for _, beam in pairs(v.data.beams) do
if v.data.nodes[beam.id1].name == "a0" and v.data.nodes[beam.id2].name == "b4" then
print("wanted beam found " .. tostring(beam.cid))
wantedBeam = beam.cid
end
end


end

local function updateGFX(dt)

for _, beam in pairs(v.data.beams) do
local beamBroken = obj:beamIsBroken(beam.cid)
if beamBroken and beam.cid == wantedBeam then
obj:addParticleByNodesRelative(0, 0, 25, 13, 0.01, 15)

end

end

end



M.onReset = onReset
M.updateGFX = updateGFX


return M