point enitity

Blitz3D Forums/Blitz3D Programming/point enitity

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I've believe I've used this ones - in psuedo:

pointentity ent, Target
p = entitypitch(ent)
y = entityyaw(ent)
rotate ent, p,y,0, 1

or if you have a vector, reset the object before pointing:

rotate ent,0,0,0, true
aligntovector ent, xvec,yvec,zvec, 1 (xaxis / pitch)
aligntovector ent, xvec,yvec,zvec, 2 (yaxis / yaw)

hope this helps
(sorry was in a hurry ;)
d.