Coding

Last week I tried to make a door that would open when I clicked on it. I was able to make the door quickly in Maya and then import it into Unity.

The main problem I had with this was the coding. To start with I tried to make the code for it using the code that I had already had. I tried to use the following code:

code

This small bit of code means that when the mouse is over the door it should rotate 270° in the y-axis. I don’t know the reason why but this code doesn’t work.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s