Jump to content

Search the Community

Showing results for tags 'collition'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

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...