Page 1 of 1

collision.hitImpulse all objects in collision.hitObjectList

Posted: Mon Mar 21, 2016 8:50 pm
by BluePrintRandom
Can someone help add a system to blender game engine, so that each collided impulse is saved from all actors (per physics frame?)


like

Code: Select all

for impact in collision.hitObjectImpulses:
     if impact.magnitude>2:
          actor.health-=impact.magnitude

right now it's impossible to do damage using physics directly, and impossible to detect 2 equal and opposite collisions..

(being squished between to fast moving cars still kills you)