test platform

Hi,

I want to test to see if I have landed on a moving platform (top surface).
I have a controller to test on a rigidBody.
The only way I can see doing this is to test the normal to see if I hit the top surface.

Is there a better way?

void OnControllerColliderHit(ControllerColliderHit hit) {
	  //print (ihit.gameObject.name);
	  if ( hit.gameObject.name=="platformMove")
		{
		  print ("hit moving platform");
		  Debug.Log("Normal vector we collided at: " + hit.normal);
		  Debug.Log(hit.moveDirection);
		
		}
	  

		
 } //void

I have got it to work like this and it already has a collider and rigibody. Dont know what you mean with another collider.

void OnControllerColliderHit(ControllerColliderHit hit) {

if ( hit.gameObject.name==“platformMove”)

		{
		  vec=new Vector3(0,1,0);

		  if (vec==hit.normal)

		  {
		
		    onPlatform="true";

			platform=GameObject.Find("platformMove");
		  }
		  else
		  {
			onPlatform="false";
		  }
	  
	    }