- Home /
Detect how "hard" a object collides with another object?
How could a detect how "hard" a object collides with another object? For a aircraft ex. If you fly realy fast and you crash on the nose, how could you detect how "hard" it collides? So you can make it damaged enough. I don't want to use the speed to detect that, because when you land i want it to detect how "hard" it lands to, so i can't just make ex. a little damage when you crashes on anything but the wheels in 40kts or a explosion if the speed is 100kts.
Answer by robertbu · Nov 03, 2014 at 03:33 PM
You can use the magnitude of the relative velocity provided as part of the collision class.
http://docs.unity3d.com/ScriptReference/Collision-relativeVelocity.html
Answer by mrkubodesign · Nov 03, 2014 at 04:09 PM
You should download Breakable Glass Asset(https://www.assetstore.unity3d.com/en/#!/content/9800) These scripts in this asset may have answer to your question.
Your answer
![](https://koobas.hobune.stream/wayback/20220613170633im_/https://answers.unity.com/themes/thub/images/avi.jpg)