dav74

Members
  • Content Count

    77
  • Joined

  • Last visited

About dav74

  • Rank
    Advanced Member

Contact Methods

  • Website URL
    http://www.webisn.byethost5.com/

Profile Information

  • Gender
    Male
  • Location
    Le Petit Bornand les Glières (Haute-Savoie, France)

Recent Profile Visitors

871 profile views
  1. RT @JeanJacquesmag: Témoignage : mon fils est #pedago https://t.co/MTmtJ6fLvG https://t.co/xn5nNY0sV0

  2. @iiceman thank you for the link All it's ok
  3. Hello, i've a problem with my code : http://www.babylonjs-playground.com/#1VXYSE I would like to move my sphere with arrows keys but in the same time i would like to apply physics (oimo) on my sphere (for jumping). If i try with "sphere.updatePhysicsBodyPosition();" i no longer see my sphere. If i try without "sphere.updatePhysicsBodyPosition();", i see my sphere but it has a strange behavior. Thank you for your help ! David
  4. Hi, I'm teacher, i live in Bonneville (french Alps). I try, since a few years, to teach " the coding " to my students (16-18 years old). I have a Website dedicated to teaching of "the Web development" (HTML5 games, BabylonJS, nodeJS, jQuery....), but sorry, this website is in french ! I'm writting a documentation devoted to Phaser for my students (sorry again, in french : "Créer des jeux avec Phaser" (create games with phaser)). You can download this document here : http://www.webisn.byethost5.com/phaser Yet it's still a draft. Thank you in advance for the critics and the returns (if there is french speaker on this forum ;-))
  5. @Deltakosh thank you very much
  6. Hello, New version is online http://www.webisn.byethost5.com/babylonjs + cannonJS use ! thank you for return
  7. i apply impulse to the sphere center (0,0,0). I should have a translation, no ? I think that i haven't understood applyImpulse's use, i'm going to wait documentation or tutorial edit : with no friction on ground, all is ok (i think that i had a "retro effect" (with friction)) other question : how to stop the impulse ? (or how long lasts the impulse ?) thank you for your help
  8. @gwenael : thank you for your help http://jsfiddle.net/dav74130/RFmWz/4/
  9. it's done : http://jsfiddle.net/dav74130/RFmWz/4/ thank you for your help
  10. Hello Deltakosh, same problem with a less powerful force, same problem with a force on x (forward then back) !
  11. My results are very strange when i use (other things works very well ) : sphere.applyImpulse(new BABYLON.Vector3(15,0,0),new BABYLON.Vector3(0,0,0));my mesh goes to the right (all is ok), but after few seconds, it goes to the left !! all my code : var canvas = document.getElementById("renderCanvas");var engine = new BABYLON.Engine(canvas, true);var scene = new BABYLON.Scene(engine);var camera = new BABYLON.ArcRotateCamera("ArcRotateCamera",0,1.3,100, new BABYLON.Vector3(0, 0, 0), scene);camera.attachControl(canvas);var light = new BABYLON.PointLight("pointLumineux1", new BABYLON.Vector3(100, 100, 0), scene); var ground=BABYLON.Mesh.CreateBox("sol",100,scene);ground.scaling.y=0.001var sphere=BABYLON.Mesh.CreateSphere("sph",20,6,scene);sphere.position=new BABYLON.Vector3(0,4,0);scene.enablePhysics();scene.setGravity(new BABYLON.Vector3(0,-10,0)); sphere.setPhysicsState({ impostor: BABYLON.PhysicsEngine.SphereImpostor, mass: 1 });ground.setPhysicsState({ impostor: BABYLON.PhysicsEngine.BoxImpostor, mass: 0, friction: 0.5, restitution: 0 });sphere.applyImpulse(new BABYLON.Vector3(0,0,15),new BABYLON.Vector3(0,0,0));engine.runRenderLoop(function () { scene.render(); });thank you for your help
  12. @Deltakosh ok, thank you, i'm going to look at
  13. @gwenael : thank you for your answer obviously, it's possible to apply a force with cannon.js
  14. Shame on me, i'm so sorry for my stupid question thank you gwenael But...i've another question : is it possible to apply a force (vector) on an object ?
  15. Hi and happy new year, will there be an announcement (on this forum or on twitter....) when the implementation of the physics engine will be effective ? thank you