Added ray casting for ParticleSystem. Issues #3492