Hot answers tagged

1

You can't just "flip velocity over y". To further that point, its obvious to see on the left and right sides of the box you would not flip over y, but instead flip over x. On the corners you need to flip over a diagonal direction. This is where it becomes less obvious how to flip it. But it's still quite easy: What you need is a function to flip ...


1

I do not use swift, but engine Cameras usually work with a frustum, which is a special type of collider, almost like a cone away from the camera, that decides what should be drawn and what shouldn't. Your camera appears to be culling (deciding not to draw) things that are far away from it, which suggests to me that the frustum is too short. The camera uses ...


Only top voted, non community-wiki answers of a minimum length are eligible