equal
deleted
inserted
replaced
38 |
38 |
39 // XXX: this should be a PhysicsObject constructor arg |
39 // XXX: this should be a PhysicsObject constructor arg |
40 collision_elasticity = PLAYER_COLLISION_ELASTICITY; |
40 collision_elasticity = PLAYER_COLLISION_ELASTICITY; |
41 } |
41 } |
42 |
42 |
43 void Player::handleDig (Vector position, float radius) { |
43 void Player::handleDig (Vector pos, float radius) { |
44 // calculate new position and velocity |
44 // calculate new position and velocity |
45 Vector digPosition = position + getDirection() * PROJECTILE_START_DISTANCE; |
45 Vector digPosition = pos + getDirection() * PROJECTILE_START_DISTANCE; |
46 |
46 |
47 // remove directly |
47 // remove directly |
48 world.removeGround(digPosition, radius); |
48 world.removeGround(digPosition, radius); |
49 } |
49 } |
50 |
50 |