How objects break ?

Hi all,

I am a newbie to the unity3d at all, and this is also my first post in unity community.
I am working on a game that involves throwing object to destroy other objects like glass and wooden bars.
It is something like Google Angry Birds.

My problem is, how can i determine the when should the object be broken ?
I mean when i throw a ball at glass bar, should it fall or be broken according to the force hit it and its direction ?
Also, how will i set this settings for the object ?

Sorry if the question is not that clear
And any help will be appreciated

Thanks,
Samer

I’m not sure if this what you are looking for, but you can determine if two objects have home in contact using colliders, and use the event to then either replace the object to be broken with a particle effect, or physics effected objects.

Hope that helps.

http://unity3d.com/support/documentation/ScriptReference/Collider.OnCollisionEnter.html

In the Collision parameter is the relativeVelocity variable which is the amount of force (according to the speed of both objects) that hit it.

As said above, the easier way is to detect them with the OnCollisionEnter and to the detect the breaks amount with the velocity…