Skip to content

Commit

Permalink
Remove child_mass
Browse files Browse the repository at this point in the history
  • Loading branch information
hiulit committed Jul 15, 2019
1 parent 5e171ab commit 1649909
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions explode_object.gd
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,6 @@ func detonate():
child.get_node(object.sprite_name).scale = Vector2(child_scale, child_scale)
child.get_node(object.collision_name).scale = Vector2(child_scale, child_scale)

child.mass = child_scale

child.set_collision_layer(0 if randf() < 0.5 else object.collision_layers)
child.set_collision_mask(0 if randf() < 0.5 else object.collision_masks)

Expand Down

0 comments on commit 1649909

Please sign in to comment.