Need some help with a world object/camera algorithm..
Hi people,
I''m creating a space game where the player is at the center of the viewport. My objects can fly through the game world fine enough, and collision detection works okay.
My main problem stems from an annoyance that I''m not sure how to go about approaching.
Once my game world objects hit the edge of the world, they wrap around to the opposite end. That works just fine.
My problem arises in the case where the player is chasing an object towards the edge of the world boundary.
WHILE the object is in the camera scope, it hits the world boundary, thereby disappearing from the view (as it''s wrapped around to the other side already)...but then reappears as the PLAYER crosses the world boundary..
I want to implement a seamless solution, where the object stays in view of the camera even if it''s crossed a world boundary.
Is there any solution to this problem? Can I "fake it" at all by grabbing the view matrix and checking it''s location within the game world?
Any help is greatly appreciated..
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement