StarToaster

Members
  • Content Count

    5
  • Joined

  • Last visited

  1. Appears to have resolved itself when I installed babylonjs 3.0.7. Not sure what the issue was.
  2. I am running on 3.0.4-beta. I tried removing the node_modules folder and reinstalling everything, but I still get the same issue. The weird thing is if I create a new instance of BABYLON.Scene it works fine, but if I try to extend the Scene object it throws Argument of type 'Scene' is not assignable to parameter of type 'BABYLON.Scene'. Property '_environmentTexture' is protected but type 'Scene' is not a class derived from 'Scene'.
  3. Hi, I'm getting some really odd issues when I am trying to extend Babylon JS objects. Example: class Scene extends BABYLON.Scene { } class Game { public engine: BABYLON.Engine; public currentScene: Scene = null; } Mesh = BABYLON.Mesh.CreateGround("newGround", 1000, 1000, 1, newGame.currentScene); Gives me the following errors: (9,69): error TS2345: Argument of type 'Scene' is not assignable to parameter of type 'BABYLON.Scene'. Property '_environmentTexture' is protected but type 'Scene' is not a class derived from 'Scene'. Is this something that is not supported? Weird thing is I had this working and then suddenly it stopped.. Thanks! -StarToaster
  4. Thanks for the help! I'm actually working with my own HTML-based UI, however, I might take a look at Babylon GUI. I've just started with BJS a couple of days ago so I don't know how much of a super-hero I am.. lol but thanks.
  5. Hi, Here's an example of what I am trying to do: http://www.babylonjs-playground.com/#N9MYJN#2 I should see my four corners appear around the sphere on the 2D canvas, but for whatever reason they do not show up in the correct spot. Thanks, -StarToaster