more tweaks to breakable vent and barrel can now explode
This commit is contained in:
@@ -48,8 +48,8 @@ func explode():
|
||||
var blast_velocity = blast_direction * blast_power * blast_amount
|
||||
|
||||
#apply and/or damage
|
||||
if body.is_in_group("scene_rigidbody"):
|
||||
if body.is_in_group("breakable"):
|
||||
if body.get_class() == "RigidBody3D":
|
||||
if body.has_method("breaking"):
|
||||
body.breaking(blast_velocity)
|
||||
else:
|
||||
body.linear_velocity += blast_velocity
|
||||
|
||||
Reference in New Issue
Block a user