summaryrefslogtreecommitdiff
path: root/2d/rigidbody/rigidbody_2/snippet2.cpp
blob: bd0cdb2723aa7621966790777a0ac3a434ae391d (plain)
1
2
3
4
5
6
7
8

struct Impulse {
    Vector2 force = { 0, 0 };
    Vector2 pointOfApplication = { 0, 0 };
    float32 timeOfApplicationSeconds = 0.25f;
    float32 timeAppliedSeconds = 0.f;
    bool isDead = false;
};