Search Unity

How to use BoundingVolumeHierarchy?

Discussion in 'Physics for ECS' started by Alex1337rus, Nov 10, 2020.

  1. Alex1337rus

    Alex1337rus

    Joined:
    Mar 30, 2016
    Posts:
    37
    Last edited: Nov 10, 2020
  2. steveeHavok

    steveeHavok

    Joined:
    Mar 19, 2019
    Posts:
    481
  3. Alex1337rus

    Alex1337rus

    Joined:
    Mar 30, 2016
    Posts:
    37
    Yeah, I know about physics system, but i am looking for bvh-tree or aabb-tree without entities or smth. I read they are using aabb-tree.
     
  4. petarmHavok

    petarmHavok

    Joined:
    Nov 20, 2018
    Posts:
    461
    You can instantiate a CollisionWorld without entities, you just need bodies, which are basically colliders and transforms. CollisionWorld is completely ECS unaware, and it can be used for the use case you need independently of the entities and dynamics.

    We are looking into ways to expose the raw bounding volume hierarchy functionality, but we haven't really defined the interfaces for it yet.