Skip to content

Commit

Permalink
fix #617 (ii): Added Health component to the created rubble
Browse files Browse the repository at this point in the history
  • Loading branch information
Mystic-Slice committed Mar 1, 2022
1 parent 62b07db commit 350ec8f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ private void buildRubblePieces(Position pos, Velocity vel, Angle angle, Size siz
velocityComponent.velocity = velocity;

EntityRef entityRef = entitySystemManager.getEntityManager().createEntity(graphicsComponent, positionComponent,
velocityComponent, angle, sizeComponent, new RubbleMesh());
sizeComponent, angle, velocityComponent, new RubbleMesh(), health);

SolMath.free(velocity);
entityRef.setComponent(new BodyLinked());
}
Expand Down

0 comments on commit 350ec8f

Please sign in to comment.