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?
Comments
Post a Comment