Skip to content

Sphere Collider for Spherical Game Objects [SYNTH-180] - #1365

Merged
PepperLola merged 8 commits into
devfrom
alexey/180/sphere-collider-for-sphere-game-objects
Jul 1, 2026
Merged

Sphere Collider for Spherical Game Objects [SYNTH-180]#1365
PepperLola merged 8 commits into
devfrom
alexey/180/sphere-collider-for-sphere-game-objects

Conversation

@AlexD717

@AlexD717 AlexD717 commented Jun 29, 2026

Copy link
Copy Markdown
Member

Task

SYNTH-180

Symptom

Currently we spawn in spherical game objects and apply a mesh collider resulting in them being composed of multiple triangles. This in turn results in them often glitching through the ground, especially when pushed by a robot.

image image

Solution

Use Waddell's sphericity formula to determine if a game object is a sphere and if it is, we apply a sphere collider rather than a mesh collider. We also apply "stiction" (or a deadzone), so if a spherical gameobjects linear/angular speed is less than the limit, we clamp it to 0. This clamping is necessary to prevent them from rolling randomly in the 2026/2025 fields.

Verification

  • Balls no longer glitch through the ground when hit on 2025/2026 fields
  • Performance is about the same (the improvements I was able to measure look to be a result of balls no longer glitching through the ground)
  • Non spherical gameobjects still act as before
  • 2025/2026 balls do not leave their start position until acted upon by an outside force

Before merging, ensure the following criteria are met:

  • All acceptance criteria outlined in the ticket are met.
  • Necessary test cases have been added and updated.
  • A feature toggle or safe disable path has been added (if applicable).
  • User-facing polish:
    • Ask: "Is this ready-looking?"
  • Cross-linking between Jira and GitHub:
    • PR links to the relevant Jira issue.
    • Jira ticket has a comment referencing this PR.

Comment thread fission/src/systems/physics/PhysicsSystem.ts
@AlexD717
AlexD717 marked this pull request as ready for review June 30, 2026 17:02
@AlexD717
AlexD717 requested review from a team as code owners June 30, 2026 17:02
Comment thread fission/src/mirabuf/ProtectedZoneSceneObject.ts
Comment thread fission/src/mirabuf/ScoringZoneSceneObject.ts
Comment thread fission/src/mirabuf/ZoneSceneObject.ts

@Dhruv-0-Arora Dhruv-0-Arora left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

VERY much needed change 👍

Comment thread fission/src/systems/physics/PhysicsSystem.ts Outdated
@PepperLola
PepperLola merged commit 3da372b into dev Jul 1, 2026
16 checks passed
@PepperLola
PepperLola deleted the alexey/180/sphere-collider-for-sphere-game-objects branch July 1, 2026 17:06
@PepperLola PepperLola mentioned this pull request Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants