Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved How to check when a collider is touching another collider in 3d

Discussion in 'Physics' started by Crazybrownie204, Oct 18, 2021.

  1. Crazybrownie204

    Crazybrownie204

    Joined:
    Mar 22, 2021
    Posts:
    34
    Hey, so I need to be able to see when a collider extending a certain distance in front of the player is touching another collider on the ground. Is there any way to do this? I am surprised that unity 3d doesn't have a istouching function like unity 2d.
     
  2. Peeling

    Peeling

    Joined:
    Nov 10, 2013
    Posts:
    442
    Physics.OverlapBox/Sphere/Capsule (ideally the nonalloc versions) are what you are looking for.