コード例 #1
0
    internal void BoxHitOtherBlock(RaycastBox box)
    {
        return;

        box.GetComponent <Rigidbody>().useGravity = false;
        box.GetComponent <Rigidbody>().velocity   = Vector3.zero;
    }
コード例 #2
0
    internal void BoxHitGround(RaycastBox box)
    {
        //return;
        // box.GetComponent<Rigidbody>().useGravity = false;
        // box.GetComponent<Rigidbody>().velocity = Vector3.zero;

        /*  foreach (var b in boxesSpawned)
         * {
         *    b.GetComponent<Rigidbody>().useGravity = false;
         * }*/
    }
コード例 #3
0
 internal void BoxHitBarrier(RaycastBox box)
 {
     box.transform.parent = ground;
     box.isImmobile       = true;
     box.GetComponent <Rigidbody>().useGravity = true;
 }