Search Unity

RaycastCommand usable with RaycastHit2D?

Discussion in 'Data Oriented Technology Stack' started by Doghelmer, May 7, 2018.

  1. Doghelmer

    Doghelmer

    Joined:
    Aug 30, 2014
    Posts:
    112
    A quick question: Am I missing something, or is only RaycastHit usable in conjunction with RaycastCommand, and not RaycastHit2D?
     
  2. tswierkot

    tswierkot

    Joined:
    Feb 15, 2017
    Posts:
    25
    Two diffrent physics systems - PhysX for 3D, Box2D for 2D. AFAIK there is no raycast job API for Box2D.
     
  3. GabrieleUnity

    GabrieleUnity

    Unity Technologies

    Joined:
    Sep 4, 2012
    Posts:
    116
    You are right, 2D physics is not released yet - but it will be available soon
     
    Creepgin and SugoiDev like this.
  4. TJHeuvel-net

    TJHeuvel-net

    Joined:
    Jul 31, 2012
    Posts:
    413
    @GabrieleUnity
    Is this available yet, async 2D physics in jobs? I couldnt find anything about this in the documentation. Is there any estimate which version might contain this?
     
  5. GavinoGrifoni

    GavinoGrifoni

    Joined:
    Jan 7, 2014
    Posts:
    1
    Any update on the availability of RaycastCommand in 2D? Gabriele wrote "will be available soon" more than 8 months ago.. Thanks!
     
  6. recursive

    recursive

    Joined:
    Jul 12, 2012
    Posts:
    603
    @GavinoGrifoni - At this point I fully expect them to focus on re-creating PhysX/Box2D in ECS over time, but they might have something for Box2D <-> jobs integration at GDC.
     
  7. Creepgin

    Creepgin

    Joined:
    Dec 14, 2010
    Posts:
    297
    Yes, any info on RaycastCommand for Physics2D would be nice. Been waiting for this for some time now.
     
  8. KAJed

    KAJed

    Joined:
    Mar 15, 2013
    Posts:
    8
    @GabrieleUnity, No change?
     
    Last edited: Sep 18, 2019