Search Unity

Question Where is Unity.Physics.Stateful defined in the physics samples?

Discussion in 'Physics for ECS' started by DudeForDot, Aug 5, 2020.

  1. DudeForDot

    DudeForDot

    Joined:
    Jul 31, 2020
    Posts:
    4
    I have been looking through the physics samples, and noticed some of the scripts uses a namespace called Unity.Physics.Stateful. It is not a part of the physics package, but id like to read it, does anyone know where it is defined?
     
  2. Zeffi

    Zeffi

    Joined:
    Nov 18, 2017
    Posts:
    24
    Try DynamicBufferCollisionEventAuthoring.cs and DynamicBufferTriggerEventAuthoring.cs, they should have the relevant stuff :)
     
    Ghosthowl likes this.
  3. petarmHavok

    petarmHavok

    Joined:
    Nov 20, 2018
    Posts:
    461
    Yeah, everything that is stateful is in the samples, so the core package of Unity Physics is still stateless.
     
  4. DudeForDot

    DudeForDot

    Joined:
    Jul 31, 2020
    Posts:
    4
    Thanks alot, i'll go check it out
     
    petarmHavok likes this.
  5. Orimay

    Orimay

    Joined:
    Nov 16, 2012
    Posts:
    304
    Well, it could have a separate package
     
  6. stephc-int13

    stephc-int13

    Joined:
    Oct 21, 2017
    Posts:
    4
    I do not find any of those files in the samples. Do you remember where they are located?