Step 1: Understanding the Concept
For the centroid \(G\) of triangle \(ABC\), \(\overrightarrow{PA}+\overrightarrow{PB}+\overrightarrow{PC}=3\overrightarrow{PG}\) for any point \(P\).
Step 2: Compare
The given relation means \(G\) coincides with \(O\), so the sum of the position vectors of \(A,B,C\) is zero.
Step 3: Equate components
x: \(2+q-5=0\), so \(q=3\).
y: \(p-2+1=0\), so \(p=1\).
z: \(-3+5+r=0\), so \(r=-2\).
Step 4: Compare the options
\((p,q,r)=(1,3,-2)\).
Final Answer:
The values are \((p,q,r)=(1,3,-2)\).
\[ \boxed{\text{(B) }(1,3,-2)} \]