mirror of
https://github.com/ConjureETS/PillowFight.git
synced 2026-03-25 17:40:59 +00:00
Add the blocking into PatScene and add a meshcollider for it
This commit is contained in:
parent
1b128fb232
commit
93832dcaa8
BIN
Assets/Materials/SlipperyMaterial.physicMaterial
Normal file
BIN
Assets/Materials/SlipperyMaterial.physicMaterial
Normal file
Binary file not shown.
8
Assets/Materials/SlipperyMaterial.physicMaterial.meta
Normal file
8
Assets/Materials/SlipperyMaterial.physicMaterial.meta
Normal 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.
@ -58,7 +58,7 @@ public class Child : MonoBehaviour
|
|||||||
|
|
||||||
private bool IsGrounded()
|
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;
|
return colliders.Length > 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user