0 votes

I'm wanting to build to Mac, iPads and iPhones.

Mac builds are really only testing builds, for fast iterative development, on the computer I'm working on. The real targets are iPads and iPhones.

How do I setup a project that runs physics consistently on all the variations of these devices and their differing aspect ratios and resolutions?

I'm willing to fit the game in a 16:9 aspect ratio all the time, and put some some spacers on the top and bottom of iPads/Mac and other devices that aren't this exact aspect ratio so as to ensure physics and the experience is consistent across devices.

But other than that... not sure what/how to make this work best and setup for these intended targets.

in Engine by (20 points)

1 Answer

0 votes

disclaimer: I've got no experience building for mobile/tablets and no experience with 3d physics :D

You'll probably want to fiddle with Project > Project Settings > General > Display > Window > Stretch (what a mouthful!). More information on multiple resolutions (or constant resolutions with different window sizes) here. You'll probably want viewport or 2d Stretch Mode with Aspect set to keep for whatever ratio you've set up in the width/height size settings.

The physics engine doesn't care about window size or resolution as far as I know, and theoretically doesn't care about platform either, though I've not tried it on different devices before. There are more options you might be interested in during the export process for mac osx or ios, but I know very little about them.

by (629 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.