I need to clamp particle velocities with different limits for horizontal, upward, and downward directions. The POP Speed Limit node works perfectly for overall speed clamping, and when I export the simulation data to external software, it accurately shows the limits being enforced. However, when I try to implement per-axis limits using a POP Wrangle, the exported data shows particles exceeding these limits, even though Houdini shows the clamped speeds correctly in the simulation.
My approach so far:
- I'm calculating horizontal speed
length(v@v.x, v@v.y, 0)
v@v.z > 0 ? v@v.z : 0
v@v.z < 0 ? abs(v@v.z) : 0
- The issue: Despite Houdini showing the correct clamped speeds, my exported data shows particles exceeding these limits when checked in external software. However, using the POP Speed Limit node works perfectly for export.
My question:
- How can I implement per-axis speed limits that behave like the POP Speed Limit node, ensuring that the limits are correctly enforced even when exporting to external software?
- Is there a more reliable way to handle per-axis speed limits, possibly using VEX in the POP Speed Limit node or another approach?
Any help would be appreciated! Thanks.