Skip to content

Commit

Permalink
Add docs for fnc
Browse files Browse the repository at this point in the history
  • Loading branch information
freshc0w committed Sep 25, 2023
1 parent 785d3d4 commit 9610ace
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.csse3200.game.entities.Weapon;
import com.csse3200.game.physics.BodyUserData;
import com.csse3200.game.physics.PhysicsLayer;
import com.csse3200.game.physics.components.ColliderComponent;
import com.csse3200.game.physics.components.HitboxComponent;
import com.csse3200.game.physics.components.PhysicsComponent;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ public void update() {
resetHealth();
}

/**
* Deflects projectile to the opposite direction
* @param me Self entity fixture
* @param other Colliding projectile fixture.
*/
private void deflectProj(Fixture me, Fixture other) {
// If self fixture does not match or the colliding target
if (hitboxComponent.getFixture() != me
Expand Down

0 comments on commit 9610ace

Please sign in to comment.