-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
The collider's rotation changes from radians to degrees #319
Conversation
WalkthroughThe pull request introduces changes to two files: Changes
Sequence DiagramsequenceDiagram
participant WireframeManager
participant MathUtil
participant Quaternion
WireframeManager->>MathUtil: Convert rotation angles
MathUtil-->>WireframeManager: Radian values
WireframeManager->>Quaternion: Use converted angles for rotation
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 1
🧹 Nitpick comments (2)
packages/auxiliary-lines/src/WireframeManager.ts (2)
391-396
: Ensure the sphere collider rotation is properly documented.This matches the box collider approach, so it should be fine, but remember to update any relevant docs or comments indicating that
rotation
is expected in degrees.
445-450
: Consistent angle handling for the capsule collider.Maintaining consistency across all collider types is good. Confirm that the underlying geometry assumptions match end-user expectations (e.g., horizontally vs vertically oriented capsules).
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
packages/auxiliary-lines/src/WireframeManager.ts
(4 hunks)packages/navigation-gizmo/src/SphereScript.ts
(1 hunks)
🔇 Additional comments (2)
packages/auxiliary-lines/src/WireframeManager.ts (2)
31-32
: Import for degree-radian conversion looks correct.Good use of
MathUtil
to keep angle conversions centralized and consistent.
354-359
: Verify the collider shape’s rotation input is indeed in degrees.Converting the input angles to radians is correct if the collider shape’s
rotation
is stored in degrees. Ifrotation
was already in radians, this operation would result in incorrect rotations.
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.
+1
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Other information:
Summary by CodeRabbit