Skip to content

Homework 2: Incorrect formula for Normal Force in Penalty method #5

Description

@Dmitryv-2024
Image

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions