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