TurnEntity problem!

Blitz3D Forums/Blitz3D Programming/TurnEntity problem!

Maybe this ?
; RotateEntity Example
; --------------------

Graphics3D 640,480
SetBuffer BackBuffer()

camera=CreateCamera()
light=CreateLight()

cone=CreateCube()
PositionEntity cone,0,0,5

While Not KeyDown( 1 )

; Change rotation values depending on the key pressed
pitch# = 0: yaw# = 0: roll# = 0 ;<- reset p/y/r
If KeyDown( 208 )=True Then pitch#=-1 ;<-changed to -1/+1
If KeyDown( 200 )=True Then pitch#=+1
If KeyDown( 203 )=True Then yaw#=-1
If KeyDown( 205 )=True Then yaw#=+1
If KeyDown( 45 )=True Then roll#=-1
If KeyDown( 44 )=True Then roll#=+1

; Rotate cone using rotation values
TurnEntity cone,pitch#,yaw#,roll# ;<- ,1 dropped

RenderWorld

Text 0,0,"Use cursor/Z/X keys to change cone rotation"
Text 0,20,"Pitch: "+pitch#
Text 0,40,"Yaw : "+yaw# 
Text 0,60,"Roll : "+roll#

Flip

Wend

End