mattiascibienmattiascibien Posts: 140
edited September 2012 in Daz SDK Developer Discussion

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.


Post edited by mattiascibien on


  • ketthroveketthrove Posts: 63
    edited December 1969

    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.

  • mattiascibienmattiascibien Posts: 140
    edited December 1969

    thank you. I have made it work using an external library.

Sign In or Register to comment.