Closed Unwarped closed 1 year ago
Hey,
The constructor was changed in version 2.0, see https://api.pixi3d.org/classes/Plane.html#constructor - it expects a Point3D, not a Float32Array.
var normal = new PIXI3D.Point3D(0, 1, 0)
Thanks jnsmalm it works now! Glad to see all the updates on pixi3D it's an awesome project.
Hey jnsmalm. I decided to get back into pixi3D and updated to the latest version. (I think I was using a 2021 build)
But I seem to be getting some math/function errors. This was my old code for raycasting to get ground coordinates:
"Uncaught TypeError: PIXI3D.Vec3.fromValues is not a constructor"
So I removed the "new" on the PIXI3D.Vec3.fromValues() call
But then I get:
"Uncaught TypeError: normal.normalize is not a function"
I tried looking into the source code, and overriding the normal manually but something seems broken.
Please let me know if you have any suggestions. Thanks!