2
$\begingroup$

Not sure if this question has already been asked, have looked around.

I'm hoping to track objects to a specific position, in a chain or a link behind the main object(enemy) when they have been sensed or "picked-up" by the enemy.

Something like this: enter image description here

I've tried using constraints:

(bge.logic.nuke) = (bge.logic.nuke). constraints.new (type= 'TRACK_TO')
(bge.logic.nuke).target = context.scene.objects.get("bullseye")

To attempt to track the object 'nuke' to the 'bullseye' once sensed by the 'bullseye'.

However, this doesn't seem to be an attribute in the bge module.I know I've done something wrong:

AttributeError: 'list' object has no attribute 'constraints' Python script error - object 'Empty', controller 'Python': Traceback (most recent call last):

Does anyone have any idea of any solutions?

Much appreciated, thanks.

$\endgroup$
-1
$\begingroup$

No worries all, I found a website which describes perfectly what I wanted to do. My bad, ignore this!! Sorry.

For anyone else whom is dense, with poor research methods (like myself), please see this site: https://wiki.blender.org/index.php/Doc:2.4/Manual/Modeling/Objects/Tracking

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.