Camera collisions

Blitz3D Forums/Blitz3D Beginners Area/Camera collisions

However, check out this odd behavior:
In this example:
Graphics3D 1024, 768
SetBuffer BackBuffer()

cam = CreateCamera()
EntityType cam, 1

plane = CreatePlane()
EntityColor plane, 50, 200, 40
PositionEntity plane, 0, -50, 0
EntityType plane, 2

Collisions 1, 2, 2, 1
Collisions 2, 1, 1, 1

While Not KeyHit(1)
	MoveEntity cam, 0, -.5, 0
	;MoveEntity plane, 0, .5, 0
	UpdateWorld()
	RenderWorld()
	If EntityCollided(cam, 2) Then Text 0, 0, "Cam collided with plane"
	If EntityCollided(plane, 1) Then Text 0, 20, "Plane collided with cam"
	Flip
Wend
End
moving the camera into the plane, only one collision is noted.

but if we move the plane instead of the camera:
(reverse commented code)
	;MoveEntity cam, 0, -.5, 0
	MoveEntity plane, 0, .5, 0
both collisions are noted.

Something to watch out for...