Art Dehls
AdamNixon
About Me
Connect
LOCATION
Not Specified
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Problem addressing elements of vector4 June 8, 2022, 4:16 p.m.
Last night a friend asked me for input on why this little snippet of code won't work.
This turned out to be a real bit of frustration as z.xz and its ilk refused to accept anything, and I do mean anything. This works of course, but I'd really like to know why it refused all those seemingly reasonable alternatives.
float f = min(z.x + z.z, 0.0);
z.x -= f;
z.z -= f;
This turned out to be a real bit of frustration as z.xz and its ilk refused to accept anything, and I do mean anything. This works of course, but I'd really like to know why it refused all those seemingly reasonable alternatives.
float f = min(z.x + z.z, 0.0);
z.x -= f;
z.z -= f;