bullet collision seems fixed
This commit is contained in:
@@ -247,10 +247,8 @@ func _on_pick_up_detection_body_entered(body):
|
||||
|
||||
|
||||
func _on_pick_up_magnet_body_entered(body):
|
||||
if body.is_in_group("pickup"):
|
||||
body.collision_shape.disabled = true
|
||||
var pickup_direction = self.global_position - body.global_position
|
||||
body.linear_velocity += pickup_direction * 5
|
||||
if body.is_in_group("pickup") and body.is_in_group("magnet"):
|
||||
body.player = self
|
||||
|
||||
func weapon_tilt(input_x, delta):
|
||||
if weapon_holder:
|
||||
|
||||
Reference in New Issue
Block a user