Read force/pressure applied to a fixed RigidBody
I have been working on physics scripts to break an object when forces applied. So far, I manage to get it work with:
Collision: calculate crushing force of one object to another using
Collision.impulse
.Momentum: calculate change of momentum using
velocity
andmass
. A great change of momentum in a brief time will break the object.
However, there is a problem. If the object is fixed to a position (unmovable), none of the methods above can calculate if an external force is applied, for example, explosive force.
How can I do this?
Answer by mgrugl · Dec 31, 2017 at 06:16 PM
Did you find a solution? I am interested in that topic too.
Answer by burakozturk16 · Jul 01, 2020 at 12:54 AM
I know too late to answer but it may help others.. I think it is about
Collision.relativeVelocity.magnitude
You can find more information at https://docs.unity3d.com/ScriptReference/Collision-relativeVelocity.html
Your answer
Follow this Question
Related Questions
Getting a variable timed Interval with coroutine and yield? 0 Answers
How to apply a force at certain point of an object? 0 Answers
How to pick up an object in hand e.g. a bat C# 0 Answers
How to flip character using touch controls ? 0 Answers
Unity Rigidbody fps controller jumps higher each time. 0 Answers