adam

Members
  • Content count

    1,394
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by adam

  1. http://www.babylonjs-playground.com/#WADD47
  2. Couple of tweaks: http://www.babylonjs-playground.com/#1BUXYF#19
  3. I think I'll be able to track this down if you can reproduce it in the PG.
  4. The functions that RotationFromAxis is now using expects the axes to be left handed. There probably needs to be some code to check for that if we want to maintain the behavior of 2.5.
  5. @jerome It works if you flip the x axis: http://www.babylonjs-playground.com/index.html#D3UFQ2#3
  6. You can use the shader here: http://cyos.babylonjs.com/
  7. This should probably be Epsilon rather than 0: https://github.com/BabylonJS/Babylon.js/blob/master/canvas2D/src/Engine/babylon.prim2dBase.ts#L2319 http://www.babylonjs-playground.com/#2WHFP1#3
  8. http://www.babylonjs-playground.com/#11BH6Z#301 I used the skeleton that was attached to the mesh.
  9. I would create spheres and place them on each of the points. Do you have a playground example of your tube?
  10. I think it has to do with this line: https://github.com/BabylonJS/Babylon.js/blob/8e9cc34160fa1b507c1f73e791ed93a131a77378/src/Mesh/babylon.geometry.ts#L374 This is the correct behavior.
  11. Cloned meshes share geometry.
  12. You can use TweenMax: https://www.babylonjs-playground.com/#5UZNC#3 https://www.babylonjs-playground.com/#5UZNC#2
  13. A few more tweaks and:
  14. The solution you came up with to fix the scaling will work as long as the parent is scaled the same on all axes or if the child rotation is limited to the axis that is scaled. Something like that.
  15. After looking at your example and playing around with it a little I remembered that AbstractMesh.setParent only preserves rotation and position - not scale.
  16. Can you create a PG of your issue?
  17. Try to remove the parent from the child using: child.setParent(null, true); https://github.com/BabylonJS/Babylon.js/blob/master/src/Mesh/babylon.abstractMesh.ts#L1828
  18. What version of BJS are you using? I fixed an issue with rotation a couple weeks.
  19. Don't pass the mesh to the rotation function.
  20. Use mesh.getDirection(localDirection) to get the world direction of whichever axis or direction you want.
  21. Does the pathfinding system freeze the game when there is only one enemy using it? If not, I'd simply limit the amount of times you can call the pathfinding function per frame. edit: OK, I'm seeing that just the recalculation of the navmesh freezes the game. You probably are going to need to use webworkers.
  22. Here is one way to do it: http://www.babylonjs-playground.com/#NRH4TH#7 another: http://www.babylonjs-playground.com/#NRH4TH#8
  23. What could be wrong? The sphere is not following the tube. How about providing the link to the PG?