TFORM help

Blitz3D Forums/Blitz3D Programming/TFORM help

Thanks for the response Rottbott but I can't seem to get this to work. I think it's returning just local coords - see code below. I take it I can't use the commands like this?

Graphics3D 320,240,16

light=CreateLight()
camera=CreateCamera()

model=CreateCone()
PositionEntity model,0,0,50
ScaleEntity model,4,2,4
EntityColor model,255,255,0

pivot=CreatePivot(model)
PositionEntity pivot,0,-5,0

temp=CreateSphere(4,pivot)
EntityColor temp,255,0,0
ScaleEntity temp,1,3,1

While Not KeyDown(1)

TurnEntity model,1,0,.5

TFormPoint 0,0,0,pivot,model
x#=TFormedX()
y#=TFormedY()
z#=TFormedZ()

RenderWorld()
Color 255,255,255
Text 0,50,"x "+Int(x)+" y "+Int(y)+" z "+Int(z)

Delay 50

Flip

Wend