In game shape recognition
Hello there,
So I'm working on this school project where we are building a game for kids. It is a building experience where kids have to build a requested shape in 1 by 1 units.
I am having trouble wrapping my head around how to construct the system that makes sure the shape is built correctly.
As seen in the picture above my prefab consist of a floor element which has four children that is attachment places.
What I am imagining is that I can track the shape through which attachments get blocked.
Looking at an L shape we get the following:
Depending on from where I build my first unit and on the pattern can vary. In the case of the L shape, there are four possibilities where 0 is the first base unit:
The stranger the shape the more cases to track for, how would I go by this in the smartest way and make a system that doesn't have the shapes hardcoded in? I hope my question makes sense. A pseudo-code example would be very helpful.
Thanks!
Answer by anaeronbaggins · May 10, 2018 at 04:59 AM
Hey! I know this is a late reply, but you can and should check this subreddit post, which is somewhat similar to your thingy.
Here is the link : https://www.reddit.com/r/Unity3D/comments/3rkr4s/trying_to_recognize_drawn_shapes/
Enjoy :)
Your answer
Follow this Question
Related Questions
Amount of Upgrades? 1 Answer
Custom Device Tracker for Vuforia? 0 Answers
XR Interaction Toolkit - Controllers not getting Tracked/Moved 0 Answers
Check to see if a player draws the right shape 2 Answers
Tracking transform position 1 Answer