Search found 2 matches

by chocolat_en_poudre
Tue Oct 24, 2023 11:23 am
Forum: General
Topic: Gravity
Replies: 6
Views: 11924

Re: Gravity

F = m * a. m = mass. a = -9.8m/s^2 at ~ sea level (gravity). -> a = F/m. Given mass of your player, F is solved for. velocity is the integral of acceleration. If you are not familiar with calculus, calculate velocity incrementally each timestep (using dt) i.e. v = dt * a, where a (accel due to grav...
by chocolat_en_poudre
Mon Oct 23, 2023 1:38 pm
Forum: General
Topic: Gravity
Replies: 6
Views: 11924

Gravity

Hi ! I just started learning love2d and im making a smash bros like game with bump.lua but it hasn't gravity fonctionality.
Can someone help me how to implement it please ?