Vec3 GetRandomPosInVolume(const Vec3* nearWorld, const Transformation& objT) const{ if (!mBV) { return Vec3(0, 0, 0); } if (nearWorld) { Vec3 nearLocal = objT.ApplyInverse(*nearWorld); return mBV->GetRandomPosInVolume(&nearLocal); } return mBV->GetRandomPosInVolume(); }