-
Notifications
You must be signed in to change notification settings - Fork 93
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: sdk7 primitives radius defaults #5018
Conversation
After the CI passes: WebThis branch can be previewed at:
Desktop:If you have the launcher installed (download launcher) you can press open on the following link: SDK 6/7:More |
@@ -29,7 +29,7 @@ public static Mesh CreateMesh(AssetPromise_PrimitiveMesh_Model meshModelModel) | |||
} | |||
else | |||
{ | |||
mesh = PrimitiveMeshBuilder.BuildSphere(1f); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can take the opportunity to extract a constant, so next time we only have to change it in one place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You made me realize that I should have removed that line 😅
Actually default value it's already defaulted in the sphere property constructor here:
Line 81 in 1e96f9f
public PropertySphere(float radius = 0.5f, int longitude = 24, int latitude = 16) |
…into fix/sdk7-primitives-defaults
What does this PR change?
changed default radius values for cylinder and sphere
fixes decentraland/sdk#558
Our Code Review Standards
https://github.com/decentraland/unity-renderer/blob/master/docs/code-review-standards.md
Copilot summary
🤖 Generated by Copilot at 1e96f9f
Reduced the default radius of sphere and cylinder mesh colliders and renderers to improve the consistency and accuracy of the physics simulation and the visual representation of primitive meshes. Adjusted the default sizes of sphere and cylinder mesh builders to match the corresponding mesh models.