How to determine the force of an object hitting another object?

I’m using physics. How can I determine the force of one object hitting another object? For example, imagine you have one object moving on the screen bumping into other objects. If it hit hard enough I’d like to have my program react. If the force is not so great nothing should happen. [import]uid: 98652 topic_id: 20514 reply_id: 320514[/import]

I used this method in a space lander game. I had the ship remove itself if it landed at a force higher than i set:

[code]
–Beginning of everything
local physics = require “physics”
physics.start()

local ship = display.newCircle(100, 100, 20)

local ground = display.newRect(10, 300, 400, 10)

physics.addBody(ship, “dynamic”, {bounce=.2, friction=.2, density=.2})
physics.addBody(ground, “static”, {bounce=.2, friction=.2})


– function to remove ship when force is too high
local function forces(event)
if event.force > 1 then – remove when force is greater than 1 using event.force
ship:removeSelf()
print(event.force)
end
end
ship:addEventListener(“postCollision”, forces) – be sure to use “postCollision”
[import]uid: 38977 topic_id: 20514 reply_id: 80472[/import]

Thanks for the reply. I think this is exactly what I was looking for! [import]uid: 98652 topic_id: 20514 reply_id: 80501[/import]