Question by
krocky4234 · Jun 22, 2020 at 06:31 PM ·
c#collisioncollider
Physics.CheckSphere get collision GameObject
Hello, How can i get the Gameobject the Sphere (Physics.CheckSphere(GroundCheck.position, groundDistance, groundMask)) is colliding with? I have tried with the OnCollisionEnter(Collision collision) function but i didnt work out. Is there a was to get the collision GameObject?,Hello,I am currently checking a collision with a wall like this: isWallJump = Physics.CheckCapsule(WallCheckBottom.position, WallCheckTop.position, 1f, groundMask); but i need the GameObject that im colliding with.
Comment
Your answer
Follow this Question
Related Questions
Collision is not working with some Collider2d 1 Answer
Collision or Triggers both not working. 3D. 1 Answer
Collision with object not working. 2 Answers