Tracking without track to

I have an object and coordinates of another object, what i want to do with them is, i want to turn first object, so it’s y coordinate is facing other object, but without using track to actuator. Is this possible? I am using blender 2.49b.

Hi Vojislav,

you can use Python to do the job:

import GameLogic as GL

cont = GL.getCurrentController()
own = cont.owner
cube = GL.getCurrentScene().objects["OBTrackObject"]

vect = own.getVectTo(cube)[1]

own.alignAxisToVect(vect,1,1.0) 

Connect it with an always sensor on your first object and name the second one “TrackObject”. Hope this is what you were looking for. If something is unclear I can post an example.

Jay-D