- Home /
This question was
closed Mar 30, 2013 at 04:21 PM by
AlucardJay for the following reason:
Duplicate Question
Question by
MultiFlipman · Mar 30, 2013 at 10:45 AM ·
gamerotatemodeprogram
Gun Against Wall
Hello, I would like a script or a link to a script so that when I go against an object tagged 'wall' the gun rotates 90 degrees upwards.
Comment
Best Answer
Answer by LightSource · Mar 30, 2013 at 04:07 PM
This is not a place to ask for scripts. Try making it yourself and we will try to help you with it the best we can.
Translating objects: http://docs.unity3d.com/Documentation/ScriptReference/Transform.Translate.html
Raycast: http://docs.unity3d.com/Documentation/ScriptReference/Physics.Raycast.html
Javascript: http://forum.unity3d.com/threads/34015-Newbie-guide-to-Unity-Javascript-(long)