So i am making a game for android in which a ball will have to reach to a point to get some velocity and then to the next…for that i am using is trigger on a sphere with mesh render off…but whats happening is as soon as it touches the sphere colliders the game freezes for a sec and then every thing is smooth…and the strange part is it happens for only the first collider it comes in contact with… here’s my code
function Start () {
}
function Update()
{
}
function OnTriggerEnter(coll:Collider)
{
var gg:MOVEMENT=GetComponent(MOVEMENT);
if(coll.gameObject.tag==“wind”)
{
gg.forward=gg.forward+100;
Debug.Log(“hey”);
}
if(coll.gameObject.tag==“wind2”)
{
gg.forward+=150;
Debug.Log(“hey2”);
}
}