This is a very important vex function to check intersections between primitives int intersect(geometry, orig, dir, &p, &uvw) You provide geometry, origin position and direction of vector checking the intersection and the function will return the intersection position in &p and uv of that prim in &uvw. It will also return 0 if an intersection […]
Tag: VEX
SOP look at constraint
Here’s a quick look at/aim constraint setup in SOP’s as you can see in the image below where the cone is pointing towards the translating sphere. You subtract position of object A from that of object B and store this result as @N and finally feed it to copy sop which is creating a single copy of the cone. […]