playMaker

Author Topic: Physics.ComputePenetration()  (Read 58 times)

escpodgames

  • Hero Member
  • *****
  • Posts: 678
    • View Profile
    • Assets
Physics.ComputePenetration()
« on: June 12, 2018, 02:48:21 AM »
Hi,

Is it possible to get a Physics.ComputePenetration action???

https://docs.unity3d.com/ScriptReference/Physics.ComputePenetration.html

This method was added to Unity in 5.6 and calculates the direction and distance a collider is into another collider, great for character controllers.