(AGK version: 108.24)
Submitted: 2015-06-24 02:03:49
rem
rem AGK Application 1.08 19
rem MR

setdisplayaspect(320/480.0)
setvirtualresolution(320,480)
setclearcolor(0,0,125)

createlightdirectional(1,0,-1,1,255,255,255)

CreateObjectcone( 1, 3,3,3 )
setobjectcolor(1,125,125,0,255)
SetObjectposition( 1,0,0,5 )

setcameraposition(1,0,0,-5)
setcameralookat(1,0,0,5,0)

do

    //axis
    ax#=0.0
    ay#=1.0
    az#=0.0

    //angle in degree
    theta# = theta# + 1.0
    w#   =   cos(theta#)
    x#   =   ax# * sin(theta#)
    y#   =   ay# * sin(theta#)
    z#   =   az# * sin(theta#)

    SetObjectRotationQuat( 1, w#,x#,y#,z# )

    sync()
loop
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.