Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Search the Community

Showing results for tags 'collition'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 1 result

  1. Good day. I'm working in small proyect using babylon.js, it's so great, but im having some troubles. 1) How do i detect if im looking directly to an object? I try to search for options and found on playground a solution to make a line from camera and detect a collition with line and object. But its not the best solution can you help me with this? And not working well sometimes, because of VR camera distortion. And line have alpha at 1 but i still can see it. lines = BABYLON.Mesh.CreateLines("lineMesh", [ new BABYLON.Vector3(0, 0, 0), new BABYLON.Vector3(0, 0, 3000) ], scene); lines.material.alpha = 1; lines.parent = camera; sphere = BABYLON.Mesh.CreateSphere("sphere1", 16, 100, scene); sphere.position=new BABYLON.Vector3(300,-400,-500); if(lines.intersectsMesh(sphere, true)){ console.log("you found me"); } 2) I have an object flying slowly around me sometimes when it on top of me or below me in Y=0, it disappears or start to flashing if im looking at it until its not around Y=0. 3) I'm using VRDeviceOrientationFreeCamera if I have distortion at 0 it's OK but if I change it, it's bacame too laggie. Is there any solution? Thanks for all possible help. Sorry for my bad English.
  • Create New...