Skip to content

Commit

Permalink
Correct the name of the paddleDimensions variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaycoskey committed Aug 21, 2011
1 parent dae9eb0 commit 04c0ad1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Wave.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ - (void) drawRect: (CGRect)rect

}

- (id)initWithPosition:(cpVect)position Dimensions:(cpVect)paddleDimensions Velocity:(cpVect)velocity
- (id)initWithPosition:(cpVect)position Dimensions:(cpVect)waveDims Velocity:(cpVect)velocity
{
if(self = [super init])
{
Expand All @@ -71,7 +71,7 @@ - (id)initWithPosition:(cpVect)position Dimensions:(cpVect)paddleDimensions Velo
offset.x = 0;
offset.y = 0;

cpVect hDims = cpvmult(paddleDimensions, 0.5);
cpVect hDims = cpvmult(waveDims, 0.5);

float velocityNorm = sqrt(velocity.x * velocity.x + velocity.y * velocity.y);
cpVect unitVel = cpvmult(velocity, 1 / velocityNorm);
Expand Down

0 comments on commit 04c0ad1

Please sign in to comment.