I want to detect car postion and direction at that white parking area i.e the car is exact on that location and and in that direction. I tried some methods but that are not perfect. How can i do it perfectly.

1 Answer
1If you want exact you can just put the car in the position you want, record the positon (x,y,z) and the rotation (x,y,z) and then do a check against your expected values with some tolerance for each of the values.
~Justin
Post the code that you've tried and we can try and help.
– Graham-DunnettI have edited my question and also added the code now please check it and post some sample code for solving this problem. @Graham Dunnett
– SmartDeveloper