AiraldiSebastian / FPS_Prototype1

Project for creating and experimenting with the development of a FPS in the Godot game engine.
4 stars 1 forks source link

Script collision layer and mask don't have any effect. #23

Open AiraldiSebastian opened 1 year ago

AiraldiSebastian commented 1 year ago

For the handling of collision layers and mask two variables were added to the 'Item' script. These variables would be used to set the respective collision layers and mask of the object. After having add one new item it was realized that these variables don't have any effect on the item. These two variables are though also available per default on the Godot-Editor for this kind of items and only these work so far.

This should be fixed such that collision layers and mask can be easily set under the script variables available in the editor. Otherwise the creator of the item will have to look up for the default ones which are not so trivial to find.

AiraldiSebastian commented 1 year ago

After testing around it was noted that these variables do have an effect, but first when the player picks up and drops the item. Before that, these variables are not used, instead the default ones are used. This issue between which variable for the collision layer is going to be used has to be solved!