MarkoDM / GodotInGameBuildingSystemGDS

MIT License
12 stars 3 forks source link

Is there any other way to prevent overlap of campfire_pit and chest items besides using collision detection? #1

Open ice-ko opened 5 months ago

ice-ko commented 5 months ago

I am a 3D novice. Now I only know how to use collision detection to deal with it. For example, in some simulation business games, they use building size grids, which makes construction more intuitive. Will the function of overlapping detection of items during construction be updated in the future?

MarkoDM commented 5 months ago

👋 Hi. As they are objects that you can place freely, collision detection is the best way to go. That is, if you want complete freedom of placement. On the other hand, you could make an object as ground/wall type, to be snapped and use existing code for this, with some upgrades. This will make it behave as you want(if I understood correctly). You can set object size independently of the model. As for future updates, I am still considering what would be best, if any. I had to cut off at some point to be as reusable as it can as a starting point. Further additions largely depend on the type of game someone is making, so it branches a lot.