• Content Count

  • Joined

  • Last visited

About Dud

  • Rank

Contact Methods

  • Twitter
  1. Hi all, This is a little game I made a while back - I would be interested to hear what people think of it. It's designed for a slightly younger audience as you can't actually die, but there are 30 levels and I'm pretty pleased with the results. Play Professor Plum's Fruit Squash
  2. HI all, My son, who is now 14, has done a little bit of coding in Python and Javascript in the past but now wants to learn more. As is typical with kids that age he wants to make games. I had thought of GameMaker but I would prefer him to use a language that is more commonplace - and you can't get much more ubiqitous than JavaScript. With that I mind I was wondering whether people thought the Interphase ebook would be a good starting resource for him to work through? Has anyone else used this ebook with their kids? How well did they understand it?
  3. @luffsoomy Run it As Administrator

  4. Thanks for the confirmation, I think I'll have to go with Unity and try their WebGL export instead.
  5. Thanks for the info - but digging around its still not clear if Mesh Colliders are supported or not. Whilst the article you linked to talks about Mesh Colliders the screenshot is from Unity. Searching through the docs there does seem to be a MeshImposter type but looking at the SetPhysicsState method on the AbstractMesh class the description says the pyhsics imposter can only be "The physics impostor Sphere/Box/Plane" which leads me to believe that Mesh Colliders aren't yet supported. Can anyone else confirm this?
  6. Hi all, I'm a complete beginner with Babylon.js but it looks a very promising framework. I'm interested in making a crazy golf type game and was planning to model some simple golf holes using Blender. My idea was to model a simple rectangular style floor with a cylindrical hole. I'd like to then import such a model using Babylon.js and I was hoping that I could apply a mesh collider to the object so that if I were to place a golf ball on the floor and apply a force I could see it drop through the hole. Is this something Babylon.js could support? I've looked through the documentation but did not specifically see any mention of a mesh collider which I think is what I would need here. I get that I could approximate something using box colliders but I'd like something more accurate if possible. Unity supports mesh colliders as does PlayCanvas - but I'd rather use Babylon.js if I can. Can anyone tell me if they think this would be possible using this framework? I apologise in advance if I have missed something obvious in the docs! Thanks, Dud
  7. I think I've realised the problem - the method above is fine, but I need to ensure that the the "ground" mesh is ready before by checking mesh.isReady() before using the above function.
  8. Hi all, I am trying to find the intersection of a ray with a height map in order to be able to place point sprites at various locations on my height map. I have read the various forum postings on the subject and I believe I have everything set up correctly. My heightmap is 100x100 with 50 subdivisions and is called "ground". When I call scene.pickWithRay in the function below I *do* hit the ground and I do have a pickInfo object - however the pickInfo.pickedPoint object is always null. Have I made a mistake somewhere? Map.prototype.createPointSprite = function (scene, spriteManager, name, x, z) { var spritePosition = new BABYLON.Vector3(0, 10, 0); //Shoot a ray to get height of map at required sprite position var ray = new BABYLON.Ray(spritePosition, new BABYLON.Vector3(0, -1, 0)); var pickInfo = scene.pickWithRay(ray, function (item) { if (item.id == "ground") return true; }); //Only place a point sprite if our ray hit the ground if (pickInfo != null && pickInfo.pickedPoint != null) { var sprite = new BABYLON.Sprite(name, spriteManager); spritePosition.y = pickInfo.pickedPoint.y; sprite.position = spritePosition; } };