Turning To Face Objects

Blitz3D Forums/Blitz3D Programming/Turning To Face Objects

If KeyDown(200) Then ONEspeed#=onespeed#+ONEacceleration#
If ONESpeed#>ONEMaxspeed Then ONESpeed#=ONEMaxSpeed

If Not KeyDown(200) Then ONEspeed#=(ONEspeed#-(friction#/100))
If ONEspeed#<0 Then ONEspeed#=0

TurnEntity ONEBATMesh,0,15*(KeyDown(203)-KeyDown(205)),0
align ( ONEpivot, ONEBATmesh, ONEtorque# ) 

MoveEntity ONEPivot,0,0,ONEspeed#
PositionEntity ONEBATMesh,EntityX#(ONEPivot),EntityY#(ONEPivot),EntityZ#(ONEPivot),1


Here's my code...

Unless it's VERY slow (but the TORQUE value is set at 8 (compared to the 15 in the turnentity command) by default) it doesn't seem to turn at all...