- Home /
Creating 'redstone' like wires
So im making a system similar to redstone, I have a class for a redstone dust node, however I need a system of detecting whether a redstone dust has been placed next to another. I initially considered colliders to check whether a piece of dust has been placed next to another. This seems cumbersome and doesnt allow me to check which size the dust has been placed on. Is there a better way of managing logical connections like this?
Answer by tormentoarmagedoom · Jul 11, 2019 at 01:42 PM
Hello.
If you are using a Tiled world (like minecraft) when placing a redstone, just need to chesk the surrunding tiles (you know its coords).
If is not a tiled map, the best option is a collider.
Once you detect if the new redstone is next to another redstone, you only need to access this old redstone alo.
Bye,.
Your answer
![](https://koobas.hobune.stream/wayback/20220612204655im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity 2D Collider Safe Sizes 0 Answers
Problem with collision with two colliders simultaneously in Unity 2D 1 Answer
Collider lets object through 0 Answers
Sprites not recognized as whole-spinning in different directions 0 Answers
2D Detect collisions of a 2D block only on left/right (not top/bottom) 0 Answers