Skip to content

Instantly share code, notes, and snippets.

@justonia
Last active March 31, 2017 21:40
Show Gist options
  • Save justonia/efca403e965d44c3d683c4f8a9dff8e6 to your computer and use it in GitHub Desktop.
Save justonia/efca403e965d44c3d683c4f8a9dff8e6 to your computer and use it in GitHub Desktop.
public static class PhysicsExtensions
{
public static void ToWorldSpaceCapsule(
this CapsuleCollider capsule,
out Vector3 point0, out Vector3 point1, out float radius);
public static void ToWorldSpaceBox(
this BoxCollider box,
out Vector3 center, out Vector3 halfExtents, out Quaternion orientation);
public static void ToWorldSpaceSphere(
this SphereCollider sphere,
out Vector3 center, out float radius);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment