After several hours of struggling with a box flying through a box and trying to find a bug in the implementation, I asked ChatGPT about the method and it gave me this formula:
$$F_n = -(k_s d * \mathbf{\hat{n}} + k_d , v_n)$$
And the box started to bounce inside!
After several hours of struggling with a box flying through a box and trying to find a bug in the implementation, I asked ChatGPT about the method and it gave me this formula:
$$F_n = -(k_s d * \mathbf{\hat{n}} + k_d , v_n)$$
And the box started to bounce inside!