However, check out this odd behavior:
In this example:
but if we move the plane instead of the camera:
(reverse commented code)
Something to watch out for...
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 Endmoving 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, 0both collisions are noted.
Something to watch out for...