atallah salah

Members
  • Content Count

    9
  • Joined

  • Last visited

About atallah salah

  • Rank
    Newbie
  • Birthday 02/09/1998

Profile Information

  • Gender
    Male
  • Location
    Jorrdan

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. atallah salah

    How to use collision in OimoJS with BABYLONJS

    You can see the elastic in the image it's not overlap into brackets may it can be solve by use more than 64 static elastic and it will not flexible if we want like to change bracket or teeth position
  2. atallah salah

    How to use collision in OimoJS with BABYLONJS

    Thank you @Wingnut @dbawel i was thinking i should not enter you into complexity because that i use skull and other thing as example if you see these bracket i want to have Elastic(Rubber) between 2 bracket at least you know maybe between these 2 bracket i will have object (teeth,wire..) the problem is if i want to draw a tube as Elastic between 2 bracket we don't want it to overlap with other object on his way this also applies to wire maybe one of bracket will have rotate more than other bracket and we don't want the wire to overlap with teeth or bracket think about if i want to draw a line between 2 mesh and i have other mesh in the way we don't want to overlap with other mesh
  3. atallah salah

    How to use collision in OimoJS with BABYLONJS

    Thank you Wingnut I really like your ideas but i think try all possibilities even if we need to build specific physics for each mesh or object and maybe we may have to use wire as mesh 3d object i understand it's possible to do it may it's hard but still possible do you think ? is there other library may help us ?
  4. atallah salah

    How to use collision in OimoJS with BABYLONJS

    @Wingnut yes exactly 😃 you know i may need things more than wire to do here i suggest you not to try to work on the first 2 brackets for last 2 brackets maybe because they no have Axis when i try to show it Thank you
  5. atallah salah

    How to use collision in OimoJS with BABYLONJS

    Thanks @dbawel @Wingnut i'm really still beginner in Babylon.js yes i'm using the mesh in picture for the project i try this way but it's give error " shape is undefined" here is example code of what i'm planing to do : scene.enablePhysics(); let Sphere = BABYLON.MeshBuilder.CreateSphere("sphere",{diameter:6},scene) Sphere.position.x=-35; Sphere.position.y=2; Sphere.rotation.y=-.7; Sphere.physicsImpostor = new BABYLON.PhysicsImpostor(Sphere, BABYLON.PhysicsImpostor.SphereImpostor, {mass: 0, friction: 0, restitution: .3}); BABYLON.SceneLoader.ImportMeshAsync("SL_bracket_005_8","modal/", "Brackets.babylon", scene).then(function (bracket) { bracket=bracket.meshes camera.target = bracket[0]; bracket[0].scaling={x:20,y:20,z:20} bracket[0].physicsImpostor = new BABYLON.PhysicsImpostor(bracket[0], BABYLON.PhysicsImpostor.MeshImpostor, {mass:1, friction: 0, restitution: .3}); }) i upload the mesh file i'm using sphere in above code but i need to use something else like other meshes ,tubes and lines ... Brackets.babylon
  6. atallah salah

    How to use collision in OimoJS with BABYLONJS

    @dbawel What i mean if you see the cannon.js it's realy take Mesh impostor but when use Mesh impostor in oimo.js it's look like using Box impostor or Sphere impostor what i'm planning to do is to have collision with meshes and tubes i have here 3D object if you see it have space in center in cannon.js when i use Mesh impostor it see the space in this object and work fine but only for spheres in omio.js when i use Mesh impostor it not see the space or any of corners or edges of the 3D object it's look like oimo.js take it as Box impostor in previous example you can see spheres go to inside Skull when using cannon.js but it's not wok fine in oimo.js Thank you
  7. atallah salah

    How to use collision in OimoJS with BABYLONJS

    First thank you Wingnut and Dbawel I try to use this settings and change values but still not work to get more clear what i mean : CannonJS : https://playground.babylonjs.com/#3B3135#4 OimoJS : https://playground.babylonjs.com/#3B3135#5
  8. I'm trying to use collision Mesh with other mesh the problem in CanonJS it's support sphere only and when i use OimoJS Mesh collision not work correctly this example by BABYLONJS: https://playground.babylonjs.com/#3B3135#1 I'm trying to change scene.enablePhysics(); to scene.enablePhysics(new BABYLON.Vector3(0,-9.81, 0), new BABYLON.OimoJSPlugin()); but when i change it something wrong happen to the Mesh collision i think it give sphere or box collision to the Mesh imported