; dxPositionEntity Example ; ---------------------- dxGraphics3D 640,480 dxSetBuffer dxBackBuffer() camera=dxCreateCamera() light=dxCreateLight() cone=dxCreateCone( 32 ) ; Set position values so that cone is positioned in front of camera, so we can see it to begin with x#=0 y#=0 z#=10 While Not dxKeyDown( 1 ) ; Change position values depending on key pressed If dxKeyDown( 203 )=True Then x#=x#-0.1 If dxKeyDown( 205 )=True Then x#=x#+0.1 If dxKeyDown( 208 )=True Then y#=y#-0.1 If dxKeyDown( 200 )=True Then y#=y#+0.1 If dxKeyDown( 44 )=True Then z#=z#-0.1 If dxKeyDown( 30 )=True Then z#=z#+0.1 ; Position cone using position values dxPositionEntity cone,x#,y#,z# dxRenderWorld dxText 0,0,"Use cursor/A/Z keys to change cone position" dxText 0,20,"X Position: "+x# dxText 0,40,"Y Position: "+y# dxText 0,60,"Z Position: "+z# dxFlip Wend End