Moving an object but keeping its perspective

Blitz3D Forums/Blitz3D Beginners Area/Moving an object but keeping its perspective

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.

Graphics3D 640,480
SetBuffer BackBuffer()


cam1 = CreateCamera()
	sphere = CreateSphere(4,cam1)
		MoveEntity sphere,0,0,2
		EntityColor sphere,255,0,0
		ScaleEntity sphere,2,2,0.2

cam2 = CreateCamera()
	CameraClsMode cam2,False,True
	CameraViewport cam2, 0,0,160,120
	MoveEntity cam2,1000,1000,1000
	cube = CreateCube(cam2)
		MoveEntity cube,0,0,4
		EntityColor cube,0,255,0


While Not KeyDown(1)
	RenderWorld
	Flip
	Wend
End