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)