示例#1
0
    void Start()
    {
        sheet = GameObject.FindObjectOfType <PhysxSheet>();

        //pocket plane bounds
        minExtents = pocketPlaneRenderer.bounds.min;
        maxExtents = pocketPlaneRenderer.bounds.max;
    }
示例#2
0
    void Start()
    {
        PhysxSheet sheet = GameObject.FindObjectOfType <PhysxSheet>();

        mass      = sheet.mass;
        uFriction = sheet.uFriction;
        rend      = GetComponent <Renderer>();
        radius    = rend.bounds.extents.magnitude;
    }