A person is said to cause an effect "voluntarily" when he causes it by means whereby he intended to cause it, or by means which, at the time of employing those means, he knew or had reason to believe to be likely to cause it.
In Simple Words
An effect is caused voluntarily if the person intended it or knew it was likely to happen.