Try this ...
Just call this ...
align( ONEpivot, ONEBATmesh, ONEtorque )
Function align( Entity, Target, Smooth# ) dp# = LIMIT ( DeltaPitch( Entity , Target ) , -Smooth , Smooth ) dy# = LIMIT ( DeltaYaw( Entity , Target ), -Smooth , Smooth ) TurnEntity Entity, dp , dy , 0 End Function ;=========================== ;=========================== ;=========================== Function LIMIT#( q# , low# , hi# ) If q < low q = low If q > hi q = hi Return q End Function
Just call this ...
align( ONEpivot, ONEBATmesh, ONEtorque )