Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

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?