</span>
                f = ku * (ovlp - res);
            <span class="keyword">else</span>
                f = 0;
            <span class="keyword">end</span>

            <span class="comment">% Total tangential force vector (against deformation and motion)</span>
            this.total_force = -f * dir;
        <span class="keyword">end</span>
    <span class="keyword">end</span>
</pre><pre class="codeinput"><span class="keyword">end</span>
</pre><p class="footer"><br><a href="https://www.mathworks.com/