Search Unity

Question How to Raycast against PhysicsWorldIndex?

Discussion in 'Physics for ECS' started by Thygrrr, May 19, 2022.

  1. Thygrrr

    Thygrrr

    Joined:
    Sep 23, 2013
    Posts:
    700
    How do I specify a Raycast against a specific PhysicsWorldIndex? (Either in a system / job or outside using the collision world)

    I used to do this with my custom collision filter code, now I'm bringing it to Entities 0.50 and want to make use of the physics worlds feature instead of using my custom solution.
     
    Last edited: May 19, 2022