Skip to content

Conversation

@marijnfs
Copy link
Contributor

Here I'm adding a few bindings from zbullet to cbullet that were missing. Especially setting forces seems important.

@hazeycode hazeycode requested a review from Copilot November 22, 2025 17:15
Copilot finished reviewing on behalf of hazeycode November 22, 2025 17:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds missing Bullet Physics bindings to zbullet for applying forces and torques to rigid bodies, and for querying total force and torque values. It also fixes a parameter naming issue in the existing cbtBodyApplyTorque function.

Key changes:

  • Adds getter functions for total force and torque acting on bodies
  • Adds force/impulse application functions for central and positional forces
  • Corrects parameter name in cbtBodyApplyTorque from impulse to torque

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@hazeycode hazeycode left a comment

Choose a reason for hiding this comment

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

The Windows build failing is a known existing issue unrelated to these changes, see #2

Copilots comments are valid and the suggested edits should be applied.

Adding CoPilot fix

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@marijnfs
Copy link
Contributor Author

I think I applied the copilot suggestion (I hope I clicked the right button)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@hazeycode hazeycode merged commit af6d88d into zig-gamedev:main Nov 29, 2025
2 of 3 checks passed
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.

2 participants