Pivot/model open/close door?

Blitz3D Forums/Blitz3D Programming/Pivot/model open/close door?

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.

Maybe it is something else? Since I tried this:
Graphics3D 800, 600, 0, 2
SetBuffer BackBuffer()

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

hatchclosed=CreateCube()
hatchopen=CreateCone()

EntityAlpha hatchclosed,1
EntityAlpha hatchopen,0

While Not KeyHit(1) 

If KeyHit(35) Then
	which_one=which_one+1
	Select (which_one Mod 2)
		Case 0
			EntityAlpha hatchclosed,1
			EntityAlpha hatchopen,0
		Case 1
			EntityAlpha hatchopen,1
			EntityAlpha hatchclosed,0
	End Select
EndIf

RenderWorld()
Flip

Wend

End

and it seems to work okay.