Raycasting
mattiascibien
Posts: 140
Hello,
I have talked to my relator today and we thought about implementing a plugin for DAZ Studio.
For working with this plugin I need to know if there are available methods to raycast from a point A to B and get the list of objects hit by the ray (or even just the first one).
Can I achieve this using the DZLine3 Class?
Thank you all.
Mattias
Post edited by mattiascibien on
Comments
There is no sdk provided class that provides ray casting. You would have to implement it. The line class will tell you if a particular line strikes a particular face, but you'd need to try this on the appropriate faces in the scene. An acceleration structure is highly recommended if you are going to attempt this.
thank you. I have made it work using an external library.