Hi all, Im not very good at scripting, in fact i know pretty much nothing and I am trying to learn as I go, I am making a game in unity and I have sliding doors, barns, one has 1 sliding door and the other has 2 sliding doors, in opposite directions.
I am using Javascript.
And I am stumped as to how to open them without using animations.
thanks
Door should contain a start, and open position which you will lerp/slerp between upon openning or closing. The alternative, is to create an animator for the door to automatically open/close when the value is set. I have door scripts that slerp open when in range, a rigidbody door that opens when pushed, and a chest that opens when [E] is clicked when looked at based on animations. I got what you need.