New answers tagged

0

Usually when you want to have "Zones" in unity, you use game objects with Colliders with isTrigger activated. There are two strategies you can use here. Either you surround the track with colliders to detect when the vehicle leaves the road (OnTriggerEnter) or you place colliders on the road and detect if the vehicle is still on the road (OnTriggerStay). ...


0

I would suggest having a look at this page and using a viewport to manage both cameras. Since you don't want scaling a ScreenViewport would be the way to go. https://github.com/libgdx/libgdx/wiki/Viewports // These would be the cameras you have set up which are following the players Camera playerOneCamera; Camera playerTwoCamera; ScreenViewport ...



Top 50 recent answers are included