Search Unity

Question How to perform a raycast (or equivalent) ?

Discussion in 'Physics for ECS' started by MadeFromPolygons, Dec 20, 2022.

  1. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,977
    Using either the havoc or any other dots phsyics package, how is a raycast done in DOTS?

    Use Case: Want to be able to tell for example if my mouse is hovering over a building in say an RTS style game
     
  2. JMPM-UNITY

    JMPM-UNITY

    Unity Technologies

    Joined:
    Jun 16, 2021
    Posts:
    93
  3. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,977
    JMPM-UNITY likes this.