Damage based on Collision Force

MonkeyTank
Posts: 10
Joined: Thu Oct 08, 2009 6:57 pm

Damage based on Collision Force

Post by MonkeyTank »

I am rather new to Bullet in general but so far I have like it allot. Currently I am trying
to assign damage based on the force of a collision of one object with another object.
Although I am able to collect collisions, I am not sure how to get this force.
Any ideas?
rrck
Posts: 26
Joined: Mon Sep 21, 2009 7:30 am

Re: Damage based on Collision Force

Post by rrck »

MonkeyTank
Posts: 10
Joined: Thu Oct 08, 2009 6:57 pm

Re: Damage based on Collision Force

Post by MonkeyTank »

Yes, that will work nicely.
Thanks soo much for all of your help. :)
Zendoin
Posts: 2
Joined: Fri Oct 29, 2010 12:10 pm

Re: Damage based on Collision Force

Post by Zendoin »

Hi,

I'm completely new to this forum... I'm trying to get "damage detection" working in blender.

I have to admit that the linked thread did not help me, I think I just don't know enough of bullet.

Maybe someone could please post some example code how to get the transfered momentum of a collision (to some object) inside a python script attached to the collision sensor (of that object)?

Thanks in advance :)