Hey guys! Here's a complicated task I cannot solve and looking forward to get ur help!
Picture of what I want to get done : http://img180.imageshack.us/i/hitpoint.jpg/
Description : I've a character, When I left click with my mouse on the Terrain the GameObject(Also called - HitPoint) goes to the hit.point position that was casted from the Mouse's position. and that HitPoint gameobject goes there with his 0,0,0 rotation. and I want it to be rotated like 180 degrees from the terrain. -Because I cannot explain exactly what I mean about rotating it like 180 degrees from the terrain the picture will make sure u understood it right. On the beginning I did this :
var HitPoint : Transform;
movePosition = hit.point;
HitPoint.transform.position = movePosition;
Now I need to rotate the HitPoint's.transform.rotation somehow. Thanks in advance!