- Home /
How much force?
This may be a simple question to you math wizs out there......
In Unity, if I have two objects moving twards each other, and they collide. I want to be able to measure how much force it was.
How would I go about figuring that out? I would like to measure the force of the impact, and then based on that force, if it is > then (some value) i want the colliding object to "break".
Anyone know how to achive this?
Answer by DaveA · Mar 20, 2012 at 01:31 AM
Newton: F=ma, p = mv
If you know the mass of your object, and it's acceleration, you know the force it carries. There is a nice discussion of this subject here: http://spiff.rit.edu/classes/phys311.old/lectures/impulse/impulse.html
But for your purposes, multiply the velocity times the mass (to get momentum) and compare that to some threshold value. Unless it needs to be really accurate, that should be close enough an approximation.
Ok.. that takes me WAY back to the days of school..to long ago....
How can i figure out the acceleration?
I have objects that are riding down tracks towards each other...
The objects have a mass of 2000 Another object is sitting atop each object and they have a mass of 300
I apply a constant force of 100,000 to the 1st object.
So I guess I have objects that have a total mass of 2300 moving towards each other with a constant force of 100,000.
Where can I get acceleration from that?
The track is made out of colliders....no riggedbodys on track...just objects so I am not sure if there is any friction/drag from the track.
I think it would be deceleration (negative acceleration) at the time of impact. If both object stop over 1/60 second, you can compute the change in velocity (aka acceleration) which should give force.