collision in js + three.js

Discussion in 'Game Development (Technical)' started by jbs, Jan 13, 2020.

  1. jbs

    jbs New Member

    Jun 30, 2014
    Likes Received:
    I have the following problem:
    Im making a first person shooter with js + three.js. Now I wanna do collision detection. So far im doing simple aabb boxes wrapped around everything, but when i comes to complex shapes, like a building, the whole building gets wrapped in 1 aabb hitbox, the whole building becomes unaccessable. What would be a good way around this ? Is there some lib or aalgorithm that creates boxes for complex shapes or would i have to do it manually ?
    Also, this whole collision thing runs server side, so it shouldnt be too expensive.
  2. burbigo1

    burbigo1 New Member

    Jan 15, 2020
    Likes Received:
    I don't know if it exists, I have never heard of it personally, but I hope you will find a solution.

    TweakBox word counter Tutuapp
    #2 burbigo1, Jan 15, 2020
    Last edited: Feb 10, 2020
  3. JoyFreak

    JoyFreak New Member

    May 3, 2019
    Likes Received:
    That sounds complex but I am sure there is a solution. I am sure someone will stumble upon this thread and will help you out! Good luck! Gaming Forums
    #3 JoyFreak, Feb 1, 2020
    Last edited: Feb 6, 2020

Share This Page

  • About Indie Gamer

    When the original Dexterity Forums closed in 2004, Indie Gamer was born and a diverse community has grown out of a passion for creating great games. Here you will find over 10 years of in-depth discussion on game design, the business of game development, and marketing/sales. Indie Gamer also provides a friendly place to meet up with other Developers, Artists, Composers and Writers.
  • Buy us a beer!

    Indie Gamer is delicately held together by a single poor bastard who thankfully gets help from various community volunteers. If you frequent this site or have found value in something you've learned here, help keep the site running by donating a few dollars (for beer of course)!

    Sure, I'll Buy You a Beer