Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Trigger is behaving sparatically

$
0
0
Hello, I was following this tutorial to make a door. I did it and it worked but now I want to make it a oneway door, and instead of having to press "f" to open and close I want it to open automatically. http://www.youtube.com/watch?v=vfL7kQeZtic I tried modifying the code (in the description of the video) so that it opens only when enter is true, and I adjusted the size of the trigger zone so that it is only in front of the door (to make it one way) This solution is very buggy. The door doesn't open smoothly, as if OnTriggerExit is being called when my character moves. And when the character is through the door, it doesn't close. I am new to triggers, I am sure there is a better way, does anyone have any suggestions?

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>