Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix spherical tank warning #170

Merged
merged 2 commits into from
Nov 4, 2024
Merged

Fix spherical tank warning #170

merged 2 commits into from
Nov 4, 2024

Conversation

BarthPaleologue
Copy link
Owner

Everytime the camera would go close to a space station a warning would be triggered by the creation of a spherical shape for each tank.

As they have the same shape, it can be shared and created properly at startup. This both removes the warning and improves performance.

share physics shape sphere between all tanks to avoid the warning and avoid generating the shape everytime
it looks better from afar
@BarthPaleologue BarthPaleologue merged commit 0d46b7e into main Nov 4, 2024
6 checks passed
@BarthPaleologue BarthPaleologue deleted the FixSphericalTankWarning branch November 4, 2024 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant