Rootating Entity with .rx

BlitzMax Forums/MiniB3D Module/Rootating Entity with .rx

Volker(Posted 2008) [#1]
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) 



klepto2(Posted 2008) [#2]
no, that will just change the value of rx, for rotation the matrix has to be changed.


Volker(Posted 2008) [#3]
All right, understood: cube1.UpdateMat()
Thanks :-)