Hello Unity community, first time poster here. Here’s my issue: I am attempting to store, track and compare the location of many gameObjects within a scene and ultimately compare their location against a set of criteria.
A VCR game object is located in room A and the player picks up the VCR and moves it to room B. I would like to know how to compare the location of the VCR from its original position to its final position.
What I’ve tried (or attempted to try)
I’ve attempted to use gameobject.transform to get the x,y, and z position and compare that to the final position but that only resulted in me knowing it moved, but not to where (room)
***Ultimately what I’d like to do is to say to the player, get item A from room A and move it to room B. Then I’d like to check to see if they have completed the task.
Any help would be greatly appreciated!