Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Requested feature: Rigidbody.SweepTestNonAlloc()

Discussion in 'Physics Previews' started by PhilSA, Jan 14, 2017.

  1. PhilSA

    PhilSA

    Joined:
    Jul 11, 2013
    Posts:
    1,926
    Last edited: Jan 16, 2017
  2. Gooren

    Gooren

    Joined:
    Nov 20, 2015
    Posts:
    329
    We also need this.
     
    NotaNaN and Prodigga like this.
  3. TheZombieKiller

    TheZombieKiller

    Joined:
    Feb 8, 2013
    Posts:
    265
    I think it would also make sense to offer List<T> or IList<T> overloads for the non-allocating physics APIs, similar to how List<T> overloads are offered for other APIs in the engine. Right now you can miss out on some physics results if your array is too small, so you either need to over-allocate and hope you catch everything or potentially have some physics "holes".