collision.hitImpulse all objects in collision.hitObjectList

Post Reply
BluePrintRandom
Posts: 47
Joined: Sun Oct 27, 2013 4:16 am

collision.hitImpulse all objects in collision.hitObjectList

Post 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)
Post Reply