Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demo error in cubescene example #90

Open
Shyghar opened this issue Jan 14, 2013 · 0 comments
Open

Demo error in cubescene example #90

Shyghar opened this issue Jan 14, 2013 · 0 comments

Comments

@Shyghar
Copy link

Shyghar commented Jan 14, 2013

Hi,
on cubescene example i have displayed the following error:

TypeError: dist2 is null
if(dist2.distance<5) xinc=0;

or

TypeError: ray is null
var dist = ray.distance;

can someone fix this example error?
I'm working on that example for a project and have to fix it..
The error is generated by
return null from the .ray() function.
Sometimes the

var objects = this.getObjects();
on line 12930 of glge-compiled.js

return null value so the rest of the script have a null value and crash..
How can we correct this demo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant