Rootating Entity with .rx

BlitzMax Modules Forums/MiniB3D/Rootating Entity with .rx

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Should't that rotate my entity?

Import Klepto.minib3d

Graphics3D 640,480

camera:Tcamera=CreateCamera()
PositionEntity camera,0,0,-10

light=CreateLight()
RotateEntity light,0,0,0

'; Create cube 1, near To camera
Local cube1:TEntity = CreateCube() 
EntityColor cube1, 255, 0, 0
PositionEntity cube1,0,0,0
cube1.rx = 10.0
Repeat
	'RotateEntity (cube1, 10, 0, 0) 
	'DebugLog (cube1.rx) 
	UpdateWorld() 
	renderworld()
	Flip True
Until KeyHit(KEY_ESCAPE)