For me, the word professional is empty, I’m an amateur. My answer to your do not understand is correct.
I’ll note that the tutorial also describes how to make a laser, including the collision-detection involved, very similar indeed to what you’re asking here. (Albeit using a ray, as serega-kkz suggests, rather than using the visible object.) Lessons 9 and 10 in particular cover the sorts of things that you’re asking about, I believe.
but didn’t it use I different approach, I used a meshdrawer as you know while in the tutorial they use some other thing I believe a collision ray. How would I do it for me? Shall I provide code to put into context what I’m saying?
As I said, it uses a collision-ray, which is what serega-kkz is recommending to you. (And which you did ask about a little above, I think.)
As implemented in the tutorial, the collision logic has very little to do with the visual representation of the laser (that is, the bit that you’ve implemented via MeshDrawer), I believe. Thus it should be quite possible for you to incorporate the collision-related code into your code.
As to using your MeshDrawer geometry for collision, you can do that, I believe–but it will likely be less efficient than using dedicated collision geometry (such as the CollisionRay), if I’m not much mistaken. Specifically, collision geometry isn’t set up in quite the same way internally as visible geometry; they’re optimised for different purposes.
Ah I now have a better understanding then I ever did, thank you so much for explaining it to me. Could you possibly help me build this collision ray in addition to the tutorial? Not right now but maybe tomorrow?
It seems to be clearly indicated. I do not know whether to try.
After the purpose of this idea has become known, I eventually recommend CollisionSegment.
If you have any specific questions regarding the process that aren’t answered in the tutorial or manual (and that you don’t find answers to by searching the forum), then ask them!
[edit] To be clear, I make no guarantee of an answer, of course. [/edit]
Come to think of it, the laser that has been shown thus far did seem to have a set length, so a CollisionSegment might be a better fit than a CollisionRay, indeed.