Jump to content

Search the Community

Showing results for tags 'select objects'.

  • 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. I am loading a scene where I'm trying to click on an object using pickResult.pickedMesh. I however get "null" when I check it on console.log. i.e. it is not hitting anything in the scene. Here is the code snippet. Have attached the index.html file as well. I was unable to upload the complete project to the playground, as I'm not sure how to upload the .babylon scene file and the .jpg files. //When pointer down event is raised newScene.onPointerDown = function (evt, pickResult) { // Check if pickResult(); did hit anything by printing it on console.log console.log(pickResult.pickedMesh) // print the info of the clicked object if (pickResult.hit) {console.log(pickResult.pickedMesh)} }; Would appreciate if anyone could help out on what could be possible wrong? Thanks. index.html
×
×
  • Create New...