Im making a game which uses this command a lot but, how does it work?
Does it return true if the other entity can see the bounding box,the mesh, or the center of the mesh?
I'm pretty sure it behaves just as a linepick would so it depends on what entitypickmode you have set for the object.
EDIT:
Ignore the above - entitypickmode is just for the obscurer not the two objects that you are checking can see each other. I don't know whether it checks bounding boxes/centre of mesh..
I'm pretty sure it's centre point to centre point.
Graphics3D 800,600
SetBuffer BackBuffer()
s = CreateSphere()
PositionEntity s,0,0,10
ScaleEntity s,5,1,1
c = CreateCube()
PositionEntity c,0,0,-10
b = CreateCube()
EntityPickMode b,2
ScaleEntity b,3,3,3
cam = CreateCamera()
PositionEntity cam,0,20,0
PointEntity cam,b
While Not KeyHit(1)
If KeyDown(205) Then MoveEntity c,0.1,0,0
If KeyDown(203) Then MoveEntity c,-0.1,0,0
UpdateWorld
RenderWorld
If EntityVisible(c,s) Then Text 0,0, "Can see each other"
Flip
Wend
:o)
Logical Center Pivot only.
yes thanks that confirms it