(AGK version: 108.24)
Submitted: 2014-12-17 15:04:04
// this example should work with AGK V1 and V2

// create object plane
// without any further code the plane will be position at 0,0,0 and have a rotation of 0,0,0
// the rotation of 0,0,0 means that it will be parrallel with xy plane
CreateObjectPlane(1,75,75)

// create a directional light (to make the scene look better)
CreateLightDirectional(1,-1,-1,1,255,255,255)

// position and orientate the camera
SetCameraPosition(1,0,0,-150)
SetCameraLookAt(1,0,0,0,0)

// main loop
do

	// rotate the plane
	RotateObjectGlobalY(1,1)

	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.