collision.hitImpulse all objects in collision.hitObjectList
Posted: Mon Mar 21, 2016 8:50 pm
Can someone help add a system to blender game engine, so that each collided impulse is saved from all actors (per physics frame?)
like
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)
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)