I dont like being long-winded, but here goes…
I need a projectile to home in on another object and hit it. I’ve done this before using a spinning projectile and some ray/radar blocks, but because the game I’m doing involves a large area, small objects, and projectiles that can’t spin because they’re halos, I need a homing scrpit. I’ve looked for one, but the only one I found doesn’t exist anymore (broken link from 2004). Here’s the idea I have:
if projectileX < targetX then projectileX = projectileX + 1 if projectileY < targetY then projectileY = projectileY + 1 if projectileZ < targetZ then projectileZ = projectileZ + 1 if projectileX > targetX then projectileX = projectileX - 1 if projectileY > targetY then projectileY = projectileY - 1 if projectileZ > targetZ then projectileZ = projectileZ - 1
The problem is that I don’t understand how to work Blender things from Python code. I could read a tutorial, but it’s too hard for me to understand what’s going on. I need almost every line to be explained so I can really get it.
I’d like someone to convert my idea into a fesible script and explain how it works so that I can write other scripts on my own. The whole problem is getting me started.
Hopefully it’s not too much to ask for.