How to make arrow move in direction ? How to give it direction, and how to make a croshair that gives moving direction to arrow ? Should this be a javascript attached to arrow or what ??
2 Answers
2You seem to not know anything about Unity really, and I suggest that before jumping into such a huge project that you do some tutorials and learn about Unity and Unityscript. I will not be helping you with your crosshair.
function Update() {
if(Input.GetButtonDown("Fire1")) {
arrow.useGravity = false;
var instance : Rigidbody = Instantiate(arrow, muzzlePoint.position, Quaternion.identity);
instance.velocity = muzzlePoint.forward * 100;
}
}
This will spawn your “arrow” object in whichever direction you are pointed.
Check this out.
Except it won't, since you're giving it the zero rotation.
– Loius