bob maximus
bob maximus

Reputation: 39

This groundcheck system was included in the unity starter assets third person controller, but now it wont work. Why?

I've found nothing about this. Here's the groundcheck Grounded = Physics.CheckSphere(spherePosition, GroundedRadius, GroundLayers, QueryTriggerInteraction.Ignore); how do I fix it?

Upvotes: 1

Views: 473

Answers (1)

Ananth
Ananth

Reputation: 1998

Answer by hanisherif1997_unity in Unity forum : https://answers.unity.com/questions/1579825/physicschecksphere-not-working.html Basically change the layer mask of player to a new layer like "Character" otherwise if it is Default, its player's collider is colliding in checkSphere

Upvotes: 1

Related Questions