summaryrefslogtreecommitdiff
path: root/2d/rigidbody/rigidbody_1/snippet1.cpp
blob: dd07254b96462f25aba6603b1d9a3e04f1475339 (plain)
1
2
3
4
5
6
7

struct Rigidbody {
    Vector2 force = { 0, 0 };
    Vector2 velocity = { 0, 0 };
    Vector2 position = { 0, 0 };
    float32 mass = 1.f;
};