When Object B Fall on Object A, how calculate the touching percentage?

When Object B Fall on Object A, how calculate the touching percentage?


Thanks.

For touching object should be use onColliderEnter or onTriggerEnter?

Are you looking at a 3D percentage? Or are you just calculating Surface area of the whole two objects? Or more simply just one side of it?

I would use OnCollisionEnter as in the Script Reference states under description :

exactly what you are looking for.

As for figuring out the percentage touching (of a single side) you first need to find the area of the two sides you are comparing and then turn it into a percentage.

Is this only for cubes or is this for something more elaborate? And what language is it in? If you can answer these questions I can help you further.

Myhi

I just need calculate the single side between two object that been touched.
It will be a cube and I need it in C#.
Thanks Myhi.