By guilleglad
on Sat, 04/25/2020 - 23:49
Hello , I'm using a MultiTarget to track a cube as a DICE, I was thinking about using the face with the normal pointing up to select the value of the dice, but I couldn't figure out how to do it. Is there a way to get the normal of one of the faces via C# script?
Hi,
Hi,
I'm not sure how this will work with the normal but you can assign 6 GameObjects to the faces of the dice and then compare the y-position.
The highest position should be the number on top.
I hope that helps.