; dxRotateEntity Example ; -------------------- dxGraphics3D 640,480 dxSetBuffer dxBackBuffer() camera=dxCreateCamera() light=dxCreateLight() cone=dxCreateCone( 32 ) dxPositionEntity cone,0,0,5 While Not dxKeyDown( 1 ) ; Change rotation values depending on the key pressed If dxKeyDown( 208 )=True Then pitch#=pitch#-1 If dxKeyDown( 200 )=True Then pitch#=pitch#+1 If dxKeyDown( 203 )=True Then yaw#=yaw#-1 If dxKeyDown( 205 )=True Then yaw#=yaw#+1 If dxKeyDown( 45 )=True Then roll#=roll#-1 If dxKeyDown( 44 )=True Then roll#=roll#+1 ; Rotate cone using rotation values dxRotateEntity cone,pitch#,yaw#,roll# dxRenderWorld dxText 0,0,"Use cursor/Z/X keys to change cone rotation" dxText 0,20,"Pitch: "+pitch# dxText 0,40,"Yaw : "+yaw# dxText 0,60,"Roll : "+roll# dxFlip Wend End