This PR implements perspective occlusion as described in #30. To turn occlusion on or off, assign the kwarg perspective::Bool of get_agent_view to true or false.
This branch does not currently work, as environments without an objects attribute currently throw an error, and I'm at a loss for an elegant workaround. I'm also skeptical that it functions as desired, but I'm looking to solve the w.objects issue before trying to write tests to confirm it works and/or changing render_with_Makie to not highlight occluded spaces in the agent view.
Also, it's beyond me why this branch has every commit I've ever made on my fork. If anyone knows how to fix that, I'd greatly appreciate it.
This PR implements perspective occlusion as described in #30. To turn occlusion on or off, assign the kwarg
perspective::Bool
ofget_agent_view
totrue
orfalse
.This branch does not currently work, as environments without an
objects
attribute currently throw an error, and I'm at a loss for an elegant workaround. I'm also skeptical that it functions as desired, but I'm looking to solve thew.objects
issue before trying to write tests to confirm it works and/or changingrender_with_Makie
to not highlight occluded spaces in the agent view.Also, it's beyond me why this branch has every commit I've ever made on my fork. If anyone knows how to fix that, I'd greatly appreciate it.