Hi,
I need to cast a ray along a local axis of a PRTLoader - any way to get that?
Thanks!
Hi,
I need to cast a ray along a local axis of a PRTLoader - any way to get that?
Thanks!
I did solve it for now, with a couple helpers and distance between them, but it would be great if I can access the axis’ in Magma
Ah, of course - Just use [1,0,0] for local X, then transform ToWorld
Actually, still no luck. I’ve attached a scene that does it correctly with all transforms at zero, and I need i to work with arbitrary transforms.
You had the right idea, except you also need to switch the ToWorld operator to “Normal” mode (it defaults to “Position” mode). When set to Normal, it will be only rotated, but not scaled or translated.
Note that if you move the PRT Loader interactively, it will not update the result on the stack unless you change the time slider.
If the PRT is a single file, it will not updated dynamically the Magma unless you set it to Limit To Custom Range but keep “Load Single Frame Only” unchecked.
Once I set it up like that, I could play back the animation and the particles would be projected along the Loader’s X axis no matter where I placed it and how I rotated it. To test, I simply created a large Geosphere around the particles, and watched the particles move to the surface of the Geosphere as the PRT Loader moved and rotated…
Sweet! Didn’t know this option existed