am trying to make rotation using euler (no problem at all) and quaternion (problem)
did anyone work on it? please correct my example:
(am ok in term of understanding the quaternion mathematic but it seems am not managing to apply it in here.)
setdisplayaspect(320/480.0)
setvirtualresolution(320,480)
createlightdirectional(1,0,-20,1000,255,255,255)
loadimage(1,"kkk.png")
CreateObjectcone( 1, 3,3,3 )
setobjectcolor(1,0,125,0,255)
SetObjectposition( 1,3,0,0 )
`rotateobjectlocalx(1,45)
CreateObjectcone( 2, 3,3,3 )
setobjectcolor(2,0,125,0,255)
SetObjectposition( 2,-3,0,0 )
`rotateobjectlocalx(2,45)
do
if getpointerstate()
y#=y#+1
SetObjectRotation( 1, 45, y#, 0 )
SetObjectRotationQuat( 2, w#,x#,y#,z# ) ` don't know what to do with it.
endif
sync()
loop