In this tutorial we cover what the PrimUV and XYZDist functions do and how they operate. I also give a few examples of how you would use them.
Houdini XYZDist & PrimUV Explained
About
In Houdini, the xyzdist function finds the closest point on a geometry from a given position in 3D space and calculates the distance between the point and the geometry. It requires the geometry (usually a node or object) and a 3D position as input. It returns the distance, the position of the closest point, and optionally the primitive number and UV coordinates on the surface. It’s commonly used for proximity calculations, collision detection, and surface sampling.
Download project files
Latest Tutorials
Learn essential techniques in Houdini & Nuke that will be useful across all projects.
Pro Courses
Learn Houdini through real world projects. Master techniques used by professionals on high-end films & cinematics.