One object move and collide then jump up to other object...

in my game two objects one is fixed and one objects is moving with learp,when this two object collide with each other, then moved object jumped up to fixed object height. How to solve this problem please help me…

Getting the height (I’m assuming you mean y axis for ‘height’ here) of any gameObject that one is colliding with is easy.

void OnCollision(Collision other)
{
    float height = other.transform.position.y;
}

But it’s entirely possible I’m not understanding the question…now that I think about it, you might also be referring to it’s collider’s bounds; which would be

void OnCollision(Collision other)
{
    float height = other.collider.bounds.extents.y;  // multiply by 2 for total collider height
}