Physics and dt
Posted: Sat Apr 10, 2021 2:15 pm
I will be using the physics engine in my next project and thought I'd check:
The applyForce method - should that be scaled by dt?
?
I mean, is applyForce the force at any given time, meaning dt is irrelevant, or is applyForce the force per second in which case, dt becomes important?
Code: Select all
Person[i].body:applyForce(intendedxforce,intendedyforce)
Code: Select all
Person[i].body:applyForce(intendedxforce * dt ,intendedyforce * dt)
I mean, is applyForce the force at any given time, meaning dt is irrelevant, or is applyForce the force per second in which case, dt becomes important?