• Content count

  • Joined

  • Last visited

About hunts

  • Rank
    Advanced Member

Recent Profile Visitors

282 profile views
  1. @Giraffewithsocks can you make a PG, so others can learn
  2. @Giraffewithsocks if (character.intersectsMesh(mesh)){ //do something } else { if (character.intersectsMesh(mesh)){ //do something } else { //do something else } }
  3. Will be done in a couple of days:
  4. @adam it works without the camera on the PG, but when i download the scene as a zip file, it doesn't show anthing,, importMesh seems to work fine
  5. Hello, i've been trying to load a scene from my github, but it doesn't load anything <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Babylon.js sample code</title> <!-- Babylon.js --> <script src=""></script> <script src=""></script> <script src=""></script> <script src=""></script> <style> html, body { overflow: hidden; width: 100%; height: 100%; margin: 0; padding: 0; } #renderCanvas { width: 100%; height: 100%; touch-action: none; } </style> </head> <body> <div id="canvasZone"> <canvas id="renderCanvas"></canvas> </div> <script> var canvas = document.getElementById("renderCanvas"); var engine = new BABYLON.Engine(canvas, true); var scene = new BABYLON.Scene(engine); if (BABYLON.Engine.isSupported()) { var canvas = document.getElementById("renderCanvas"); var engine = new BABYLON.Engine(canvas, true); BABYLON.SceneLoader.Load("", "Sponza.babylon", engine, function (scene) { // Wait for textures and shaders to be ready scene.executeWhenReady(function () { scene.activeCamera.attachControl(canvas); // Once the scene is loaded, just register a render loop to render it var sphere = BABYLON.Mesh.CreateSphere("sphere1", 16, 0.3, scene); // Move the sphere upward 1/2 its height sphere.position.y = 1; scene.onPointerDown = function (evt, pickResult) { console.log(pickResult); if(pickResult.hit){ // if the click hits the ground object, we change the impact position if ( = "sphere1") { sphere.dispose() } } }; engine.runRenderLoop(function() { sphere.position.z -= 0.002; scene.render(); }); }); }, function (progress) { // To do: give progress feedback to user }); } engine.runRenderLoop(function () { scene.render(); }); // Resize window.addEventListener("resize", function () { engine.resize(); }); </script> </body> </html>
  6. This is my update so far You can check my model by typing 'hunts' in the textfield all in lowercase
  7. @gryff & @V!nc3r i messed up
  8. I still can't figure this out
  9. @re_evolutn, nice game, but did you use skybox for the environment, it will be muchhhh fun with a blender model, i love strategy games
  10. @BangTao console.log(balloon2.intersectsMesh(customMesh)) returns true, what are you really trying to do, please kindly specify. cheers hunts
  11. i'm very sorry to bother the forum again, but this is for the benefit of learning i applied material from the blender color palette to my model, but it seems not to be exporting here's my blender file joker riggedddd.blend?dl=0
  12. @c75Have you tried the layer new Layer(name, imgUrl, scene, isBackground, color) set 'isBackground' to true
  13. @yorke nice to have you in the forum, have you tried "intersectPoint(vector3)"?