By SaberCortez
on Thu, 01/02/2014 - 09:05
Hey Everybody,I've done a simple mechanism of shooting towards the 3DModel that is produce from the image target.. However the model would not be destroy, I know this works on standard Unity.. here is my code for the collision part:
function OnTriggerEnter(other:Collider){if(other.tag == "Bullet"){takedamage = true;}}
Destroy Model
The 3D model from the Image Target is controlled by the ImageTargetTrackableEventHandler attached to it. This enables the object making it visible / invisible whenever there is a state change.