Skip to content

Demo error in cubescene example #90

@Shyghar

Description

@Shyghar

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions