Add the blocking into PatScene and add a meshcollider for it

This commit is contained in:
Patrice Vignola 2015-08-22 03:02:35 -04:00
parent 1b128fb232
commit 93832dcaa8
5 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e20d9c81c57a0c14abf0b23546831a8f
timeCreated: 1440226047
licenseType: Free
NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

Binary file not shown.

View File

@ -58,7 +58,7 @@ public class Child : MonoBehaviour
private bool IsGrounded()
{
Collider[] colliders = Physics.OverlapSphere(GroundCheck.transform.position, 0.5f, 1 << LayerMask.NameToLayer("Ground"));
Collider[] colliders = Physics.OverlapSphere(GroundCheck.transform.position, 0.149f, 1 << LayerMask.NameToLayer("Ground"));
return colliders.Length > 0;
}