void Start() { sheet = GameObject.FindObjectOfType <PhysxSheet>(); //pocket plane bounds minExtents = pocketPlaneRenderer.bounds.min; maxExtents = pocketPlaneRenderer.bounds.max; }
void Start() { PhysxSheet sheet = GameObject.FindObjectOfType <PhysxSheet>(); mass = sheet.mass; uFriction = sheet.uFriction; rend = GetComponent <Renderer>(); radius = rend.bounds.extents.magnitude; }