Search Unity

Geometry collection

Discussion in 'Physics for ECS' started by snacktime, Dec 3, 2019.

  1. snacktime

    snacktime

    Joined:
    Apr 15, 2013
    Posts:
    3,356
    I think DisplayCollidersSystem is a good reason for just creating stand alone geometry collectors. We have several use cases actually and by the time DOTS expands into more features it will also.

    Not sure exactly what a generic interface to this looks like. You need the ability to filter/transform vertices at a minimum.

    My own version is basically pass in NativeList's with the collider pointer and a RigidTransform. But we have limited use cases so the logic for those is just encapsulated in some flags that we pass.