Jump to content


Recommended Posts


I have been trying to use the .RayHelper constructor, but I keep getting an error saying that the RayHelper is not a constructor. I suspect that I am missing files. The ones that I have in my index.html are: 

- babylon.custom.js

- babylon.objFileLoader.js

- babylon.objFileLoader.min.js

- hand.minified-1.2.js

- Oimo.js

How can I fix this error?

Link to comment
Share on other sites

Hi @bser, welcome to the forum.  Here is a playground demo that shows how to use the RayHelper... http://www.babylonjs-playground.com/#ZHDBJ#34

(lines 32-35)  Maybe this will help.

I don't think RayHelper is an extension, so it should work without adding any extra <script> elements to your project.  Grabbing a ZIP of that playground.... should work fine at-home.

RayHelper might be coded by our good friend @adam, but I'm not sure.  I'll ping him just in case he wants to monitor our conversation, here.

Good luck, Bser... keep us posted on your progress, thx.  We'll talk again soon.  Be well, party on.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...