I am doing a rigid body physics simulation program. This simple program can simulate the behaviour of a rigid sphere rolling/sliding on some surface. I need help with computing the friction force on the 3-dimensional space.
Basically the ball have an initial angular velocity vector $\vec{\omega}$ and translation vector $\vec{v}$ at the same time. I understand that if their magnitude $\omega$ and $v$ fulfill $v=\omega r$, then the ball is in pure rolling, and there will be no sliding friction forces, but what if $\vec{\omega}$ and $\vec{v}$ are not perpendicular. In such situations, sliding and rolling will create friction because they are not relatively still to the contact surface. How can I compute the sum friction force in this situation?
Similarly, what if $\vec{\omega}$ is perpendicular to $\vec{v}$ but not perpendicular to the contact normal? We can observe the ball is rolling in an arc, but how does the friction contribute to this situation?