Hey Everyone,
I’m at an odd spot right now, Been trying to figure this out but can’t seem to figure out why this script only works somtimes.
The intention behind this script, is when an object (with a certain tag) stays within a collider and an input is pressed, the colliding object will set its postion & rotation to an already specified transform.
Now this script works, sometimes, and I have no clue why it doesn’t work all the time.
I currently have this set up with 4 colliders attached to parent objects in the game scene, only 2 of these spots complete the transform BUT i’ve tested and it says it should be transforming the position in the other spots aswell, but it isnt. Very odd.
I’ve been looking back and forth between the inspector and script and can’t seem to find what is causing this, So I thought i’d reach out and see if anyone can spot any issues with my script (in case the problem is there).
I’d appreciate any help that any could give!