c# - Object doesn't rotate in Unity 5.3 -


for unknown reason object doesn't rotate on trigger enter, print object's tag, collision detection alright.

private void ontriggerenter(collider collider) {     print(collider.gameobject.tag + " entered");     transform.rotate(0,45,0); } 

script attached door want rotate has rigidbody , box collider attached. ideas?

also noticed 3 errors when rotating manually, see pic: enter image description here


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -