Giter Site home page Giter Site logo

Octrees about rapier HOT 4 CLOSED

dimforge avatar dimforge commented on June 15, 2024
Octrees

from rapier.

Comments (4)

sebcrozet avatar sebcrozet commented on June 15, 2024

Hi!

Could you provide details on what makes octrees essential to your application? What operation would you like an octree implementation to provide for you?

An octree data structure will be added in the future, but it will not be in Rapier. It will be in the ncollide crate Rapier uses.

from rapier.

iMplode-nZ avatar iMplode-nZ commented on June 15, 2024

I need efficient detection of collisions between two entities with a lot of shapes in them.

from rapier.

sebcrozet avatar sebcrozet commented on June 15, 2024

In that case octrees are not necessarily the best choice. A bounding-volume hierarchy is also a great choice for this because they give the guarantee that each shape will be on their own tree node (whereas octrees may require shapes to be added to multiple octree nodes they intersect).

Octrees will be particularly good if you have a point cloud or a voxel grid. But for general shapes they don't have a clear advantage over bounding-volume hierarchies (which already exist in ncollide as BVT).

from rapier.

iMplode-nZ avatar iMplode-nZ commented on June 15, 2024

I do have a voxel grid. Would it be possible for me to implement a separate octree shape? If bounding volume hierachies work for most cases then it probably won't be implemented just for this case, but I would like it to be feasible.

from rapier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.