Okay, this is going to be a long one:
I have a cannon, i want to know where it hit’s and what it hits and which orientation the hit object has.
Try 1: The cannon emmits a visible bullet via add object, the bullet hit’s something and get’s destroyed, a python script to find out where and the orientation, add an empty at this position and add a bullethole in the target. doesn’t work because Attribute-error getHitPosition() occurs with a collision-sensor.
Try 2: The connon has a ray-sensor, getHitPosition works, the bullethole appears as planned. now i want to tell the hit object that it was killed a moment ago, ergo getHitObject(), to find out what was the Target. This gives me an empty string or “None”. Cool
Try 3: Every object gets a collision-sensor. when a bullet hit’s the object the script tries to find out where and creates a hole via an empty at this place: Attribute-error getHitPosition(). Nice
Well, i don’t know if i described the situation understandable but i’m a little bit… let’s say “unsatisfied” with the results so far…
Blender Publisher, Win98se, Python2.2
Anyone able to help me?