Permalink
Browse files

Fixed angular velocity variable name typo

  • Loading branch information...
1 parent 1d2a7f1 commit 8f36d4ff2c522cd32cf78f17ea085a30040378d2 @jtpalmer jtpalmer committed Mar 4, 2011
Showing with 4 additions and 1 deletion.
  1. +3 −0 CHANGELOG
  2. +1 −1 src/SDLx/Controller/Interface.xs
View
3 CHANGELOG
@@ -1,5 +1,8 @@
Revision history for Perl extension SDL_perl.
+*
+ - SDLx::Controller::Interface fixed angular velocity [jtpalmer]
+
* 2.531 Feb 27 2011
- protecting dstrect from modification during SDL_BlitSurface (FROGGS)
- installing SDLpp as a console app (kthakore)
View
2 src/SDLx/Controller/Interface.xs
@@ -113,7 +113,7 @@ void integrate( SDLx_Interface* object, float t, float dt)
const float dydt = 1.0f/6.0f * (a->dy + 2.0f*(b->dy + c->dy) + d->dy);
const float dv_ydt = 1.0f/6.0f * (a->dv_y + 2.0f*(b->dv_y + c->dv_y) + d->dv_y);
const float drotationdt = 1.0f/6.0f * (a->drotation + 2.0f*(b->drotation + c->drotation) + d->drotation);
- const float dv_angdt = 1.0f/6.0f * (a->dang_v + 2.0f*(b->dang_v + c->dv_y) + d->dang_v);
+ const float dv_angdt = 1.0f/6.0f * (a->dang_v + 2.0f*(b->dang_v + c->dang_v) + d->dang_v);
state->x = state->x + dxdt*dt;
state->v_x = state->v_x + dv_xdt*dt;

0 comments on commit 8f36d4f

Please sign in to comment.