Search the Community
Showing results for tags 'mesh intersection'.
-
Hi, regarding a sphere in a sphere scenario, I would like to ask .. 1) Is intersection possible for an inner intersection event of the spheres? - If I take BABYLON.ActionManager.OnIntersectionExitTrigger this state will be reached if the small inner sphere is more than the half out of the outer sphere - If I take BABYLON.ActionManager.OnIntersectionEnterTrigger this state will be reached direct the scene is started .. and I need exact the intersection if a small inner sphere touches the inner wall of the outer sphere How to do? 2) How can a given sphere segment have materials on both sides of the mesh? At the moment I can give some material & color to the segment but if the segments turns around it is not to see anymore. My first thought was going in direction of backface culling or the DOUBLESIDE option var sphere = BABYLON.MeshBuilder.CreateSphere("sphere", {segments: 25, diameter: 5, arc: 1.0, slice: 0.2}, scene, false, BABYLON.Mesh.DOUBLESIDE); but it not seems to help. How to bring on some color to the inner side of the mesh, without having an inverse second mesh? Thanks and with best regards, Stefan
- 7 replies
-
- mesh intersection
- backface
-
(and 1 more)
Tagged with: