Skip to content

Commit

Permalink
adds getting timestep, subsamples, gravity and its direction
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerboa-app committed Mar 5, 2024
1 parent d4734f4 commit 2b0823d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/System/Physics/sPhysics.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,14 @@ namespace Hop::System::Physics
}

void setTimeStep(double delta){dt = delta; dtdt = dt*dt;}
double getTimeStep() const { return dt; }

void setSubSamples(unsigned s){subSamples = s;}
unsigned getSubSamples() const { return subSamples; }

void setGravity(double g, double nx, double ny){gravity = g; ngx = nx; ngy = ny;}
double getGravity() const { return gravity; }
glm::vec2 getGravityDirection() const { return glm::vec2(ngx, ngy); }

// Lua

Expand Down

0 comments on commit 2b0823d

Please sign in to comment.