Jump to content

Kingmarc77

Members
  • Content Count

    3
  • Joined

  • Last visited

About Kingmarc77

  • Rank
    Newbie

Profile Information

  • Gender
    Male
  • Location
    England
  1. Thank you! Also, the scene.activeCamera.attachControl(camera); line wanted changing to camera.attachControl(canvas);. Now I can finally start working with BabylonJS! Thank you all!
  2. Here is my simple code: <html> <head></head> <body> <canvas id="renderCanvas"></canvas> <script src="jquery-2.1.4.min.js"></script> <script src="babylon.2.2.max.js"></script> <script> var canvas = $("#renderCanvas"); var engine = new BABYLON.Engine(canvas, true); var scene = new BABYLON.Scene(engine); var camera = new BABYLON.ArcRotateCamera("Camera", 1, 2, 10, new BABYLON.Vector3(0, 0, 0), scene); scene.activeCamera.attachControl(camera);
×
×
  • Create New...