Game Development Community

Anyway to check that AIPlayer is yawing?

by Sibsan Suksuchano · in Torque 3D Professional · 10/02/2010 (5:50 pm) · 0 replies

T3D 1.1 beta3

I'm try to make AIPlay play turn animation while they are moving.

First I use "delta.rotVec.z" to check turning in pickActionAnimation() everything work fine until AI be called "setApplyImpulse" or "setTransform" while they are moving on their path.

after call "setApplyImpulse" or "setTransform" their "delta.rotVec.z" on client size alway "0" and AI never do turn animation again.(I think this cause by delta.warptick is 0 after call "setApplyImpulse" or "setTransform" but I don't know why it happen).

So if anybody have the better way than use "delta.rotVec.z" please tell me.