hey my game development fellows ![]()
i got stuck in a problem with the physics engine by unity. there is a barrel wich should break into pieces if it collides with another object faster than a specified velocity. now the problem is: how to know the torque of these pieces?
say for example:
-the barrels rigidbody rotates with a torque of (0.7,0.7,0)
-than it collides
-the velocity of the pieces can easily get by using “GetPointVelocity()”
-now destroy the barrel itself, spawn the pieces and apply the velocity .
it is important that it is physically correct.
hope anyone has some ideas /suggestions.
cheerio sumaccamus