[SOLVED]!!!Collision and physics...

Ok here’s the deal

I have an object that when it collides with another it needs to make the player object jump in the air.

So when I attach a script to the object for the collision event I’m having issues on how to have the player jump.

I have given the player object a tag of player and can get the GameObject reference that way, but it seems that if I do anything to either the rigidbody or the transform it’s not working correctly.

any ideas would be greatly appreciated.

Ok here’s what I did.

I’m using the ThirdPersonController from the 3rdPersonTutorial.

Function OnCollisionEnter(collision : Collision) 
{
	
    var go : GameObject;
    go = GameObject.FindWithTag("Player"); 
   
	  //player jump
        go.GetComponent(ThirdPersonController).SuperJump(50.0);
	//Destroy Object
	Destroy(gameObject,1);
  
	}

Solved this btw.

How did you solve this and what was the issue?

well I edited the original post with the solved code.

The issue was that I had an object the when it collided with another object that would cause the player to jump.

So I just wrapped my head around the api and found it out… I was over thinking the problem.