TFormPoint trouble

Blitz3D Forums/Blitz3D Programming/TFormPoint trouble

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.

Just what result was everyone expecting from the example?

Consider this slightly modified version.
Graphics3D 800,600,32

cam = CreateCamera()
PositionEntity cam,0,0,-15

light = CreateLight()

ball = CreateSphere()
EntityColor ball, 0,255,0

cube = CreateCube()	

PositionEntity ball,0,6,0

;ScaleEntity cube,1,6,1 ;Un-comment this.
	
While Not KeyHit(1) 

   RenderWorld

   TFormPoint EntityX(ball,1),EntityY(ball,1),EntityZ(ball,1),0,cube

   Text 10,110,TFormedX()		
   Text 10,125,TFormedY()		
   Text 10,140,TFormedZ()		

   Flip

Wend

The cube initially extends from -1 to +1 on each axis.
The point (0,1,0) is the center of the top (y=1) face of the cube.
This is still true if the cube is moved in space. Suppose the cube were moved up by 5.
The center of the top face would be at (0,6,0) in the world, but still (0,1,0) in the cube's local space.

The same is true after scaling by 6 in the Y-direction. The top of the cube now
has y=6 in world space, but is still at y=1 in cube space.