Whats the best way to do this?
I tired a gameobject with a trial render attached that follow the finger but it seems to slow, is there a faster way? with code perhaps?
Thanks,
-Mike
Whats the best way to do this?
I tired a gameobject with a trial render attached that follow the finger but it seems to slow, is there a faster way? with code perhaps?
Thanks,
-Mike
Can you post the code you’ve got so far? It may be possible to optimise it a bit.
Hey,
here’s what I’m doing now,
var FingerSword1 : GameObject;
function Update(){
var ray1 = camera.ScreenPointToRay (iPhoneInput.GetTouch(0).position);
var hit : RaycastHit;
if (Physics.Raycast (ray1, hit)) {
FingerSword1.transform.position = hit.point;
FingerSword1.active = true;
}
}
That’s basically what’s going on, I have a feeling there are better ways.
Thanks,
-Mike