- Home /
Question by
Sylon87 · Nov 26, 2018 at 02:30 PM ·
c#rotationrigidbodyscripting beginner
How to detect right answer or not
hello everyone.
I have a swigging object and i want to something when he has reached the target positione for example (45 degrees) so from 40 degrees to 50 i’m showing a ui that inform the player to press a button, but if it pass through i want to apply a oenlty and return to the last state ( it’s all separated by enum state so i’m able to set the right degrees for each state on the enum)
So the point is witch is the better way to detect when player reach the target degrees bu player miss it.
Thank you in advance
Comment