Rootating Entity with .rx
BlitzMax Forums/MiniB3D Module/Rootating Entity with .rx| 
 | ||
| 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) | 
| 
 | ||
| no, that will just change the value of rx, for rotation the matrix has to be changed. | 
| 
 | ||
| All right, understood: cube1.UpdateMat() Thanks :-) |