Fix not box collider
This commit is contained in:
parent
28c01da0ce
commit
8386f83ee1
@ -110,15 +110,7 @@ public class PlayerController : MonoBehaviour
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (other.GetContact(0).normal == other.transform.forward
|
if (other.GetContact(0).normal == other.transform.forward || other.GetContact(0).normal == -other.transform.forward)
|
||||||
|| other.GetContact(0).normal == -other.transform.forward
|
|
||||||
|| (
|
|
||||||
other.GetContact(0).normal != -other.transform.up
|
|
||||||
&& other.GetContact(0).normal != other.transform.up
|
|
||||||
&& other.GetContact(0).normal != -other.transform.right
|
|
||||||
&& other.GetContact(0).normal != other.transform.right
|
|
||||||
)
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -134,15 +126,7 @@ public class PlayerController : MonoBehaviour
|
|||||||
if (other.gameObject.tag == "platform")
|
if (other.gameObject.tag == "platform")
|
||||||
{
|
{
|
||||||
|
|
||||||
if (other.GetContact(0).normal == other.transform.forward
|
if (other.GetContact(0).normal == other.transform.forward || other.GetContact(0).normal == -other.transform.forward)
|
||||||
|| other.GetContact(0).normal == -other.transform.forward
|
|
||||||
|| (
|
|
||||||
other.GetContact(0).normal != -other.transform.up
|
|
||||||
&& other.GetContact(0).normal != other.transform.up
|
|
||||||
&& other.GetContact(0).normal != -other.transform.right
|
|
||||||
&& other.GetContact(0).normal != other.transform.right
|
|
||||||
)
|
|
||||||
)
|
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user