From fb47fc5c644e57b3e1aa895062b487d3e13cfd2d Mon Sep 17 00:00:00 2001 From: Luna Date: Mon, 22 Jan 2018 15:05:31 -0500 Subject: [PATCH] Prevent wall from being used to block objective This prevents hero 1 from permanently setting the objective to one side, making them very OP and the game un-fun. Any object with collision mask=2 will no longer collide with the objective. --- scenes/objective.tscn | 2 +- scenes/wall.tscn | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scenes/objective.tscn b/scenes/objective.tscn index b2cc1e8..2b7c582 100644 --- a/scenes/objective.tscn +++ b/scenes/objective.tscn @@ -25,7 +25,7 @@ height = 14.0 input_ray_pickable = true input_capture_on_drag = false collision_layer = 1 -collision_mask = 1 +collision_mask = 2 mode = 0 mass = 1000.0 friction = 1.0 diff --git a/scenes/wall.tscn b/scenes/wall.tscn index 9200360..bce9a68 100644 --- a/scenes/wall.tscn +++ b/scenes/wall.tscn @@ -16,7 +16,7 @@ extents = Vector3( 1, 1, 0.1 ) input_ray_pickable = true input_capture_on_drag = false collision_layer = 1 -collision_mask = 1 +collision_mask = 2 friction = 1.0 bounce = 0.0 constant_linear_velocity = Vector3( 0, 0, 0 )