Search the Community

Showing results for tags 'boundingsphere'.



More search options

  • 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
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

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. Hello everybody ! I've got a question about boundingspheres. I want to set my camera to an appropriate distance from my meshes to see all of them in my frucstrum. I tried the code below, it's working if boudingspheres of my meshes are not too far or if there is just one mesh. I want it to work for every meshes importation, so I have to merge my boundingspheres but I don't know how to do it. for (let i = 0; i < newScene.meshes.length; i++) { test = newScene.meshes.getBoundingInfo().boundingSphere; camsum += test.radius / Math.sin(this.camera.fov / 2); } let camaverage = camsum / newScene.meshes.length; this.camera.radius = camaverage; Some advices ? Thanks for your time ! DeathSoul