IsoEngine/src/components/physics_component.cpp

6 lines
170 B
C++
Raw Normal View History

2024-09-09 02:50:07 -06:00
#include "physics_component.h"
void PhysicsComponent::Update(float deltaTime) {
velocityX += accelerationX * deltaTime;
velocityY += accelerationY * deltaTime;
}