(Blender 2.62)
I’m working with Object Oriented Programming, where the main script is run from one central script controller, rather than attaching scripts to individual objects.
I have a Collision sensor attached to an And controller (to detect the pulse) on my Player object, which is meant to collide with certain objects around the scene.
My Python script accesses this Collision sensor and checks if it’s positive (if collision.positive:). I then have the script print the collision.hitObject, but this only prints a None value. Printing collision.hitObjectList also just prints an empty list “[]”.
I’ve tried to replicate this in a fresh blend file, but it would actually successfully print the Object in the console and I wasn’t able to get the same result as before.
Here’s what’s going on in a nutshell (rather, in a video):
I can’t isolate the problem in the .blend file, so if I were to link it here I wouldn’t be able to take any content out to make the file lighter - with the exception of the textures. Please let me know if that would be necessary though.