1234567891011121314151617 |
- /*
- * 2D Physic Engine
- * particules.cpp:
- * Based on pikuma.com Learn Game Physics Engine Programming course.
- * Copyright (c) 2022 986-Studio. All rights reserved.
- *
- * Created by Manoël Trapier on 07/06/2022.
- */
- #include <physics/particle.h>
- void particle::integrate(double dt)
- {
- this->velocity += this->acceleration * dt;
- this->position += this->velocity * dt;
- }
|