ScriptReference/Physics.ComputePenetration #240
Replies: 1 comment
-
|
Note you can easily wrap this with a simpler method signature to create a simple collider-collider intersection test, e.g. public static bool Intersects(this BoxCollider a, Collider b)
{
return Physics.ComputePenetration(a, a.transform.position, a.transform.rotation, b, b.transform.position, b.transform.rotation, out _, out _);
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/Physics.ComputePenetration
https://docs.unity3d.com/ScriptReference/Physics.ComputePenetration.html
Beta Was this translation helpful? Give feedback.
All reactions