Hi
Who can explain me EntityVisible, because I make a simple exemple, and I'don't understand why the result is true
Graphics3D 640,480,16,2
SetBuffer BackBuffer()
Global test=CreateCube()
ScaleEntity test,1.5,1.5,1.5
Global piv = CreatePivot()
sph1 = CreateSphere(8,Piv)
PositionEntity Piv,0,0,10
Global piv2=CreatePivot()
PositionEntity Piv2,0,0,-10
sph2=CreateSphere(8,Piv2)
cam = CreateCamera()
PositionEntity cam,-15,0,0
RotateEntity cam,0,-90,0
While Not KeyHit(1)
RenderWorld
If EntityVisible(Piv,Piv2) Then
Text 10,10 ,"visible"
EndIf
Flip
Wend
thank
Who can explain me EntityVisible, because I make a simple exemple, and I'don't understand why the result is true
Graphics3D 640,480,16,2
SetBuffer BackBuffer()
Global test=CreateCube()
ScaleEntity test,1.5,1.5,1.5
Global piv = CreatePivot()
sph1 = CreateSphere(8,Piv)
PositionEntity Piv,0,0,10
Global piv2=CreatePivot()
PositionEntity Piv2,0,0,-10
sph2=CreateSphere(8,Piv2)
cam = CreateCamera()
PositionEntity cam,-15,0,0
RotateEntity cam,0,-90,0
While Not KeyHit(1)
RenderWorld
If EntityVisible(Piv,Piv2) Then
Text 10,10 ,"visible"
EndIf
Flip
Wend
thank