Skip to content

Document btGhostPairCallback setup for btGhostObject and btKinematicCharacterController - #4829

Open
M-Colley wants to merge 1 commit into
bulletphysics:masterfrom
M-Colley:fix/issue-4782-ghost-character-docs
Open

M-Colley wants to merge 1 commit into
bulletphysics:masterfrom
M-Colley:fix/issue-4782-ghost-character-docs

Conversation

@M-Colley

@M-Colley M-Colley commented Dec 2, 2026

Copy link
Copy Markdown

Using btKinematicCharacterController, btGhostObject, or btPairCachingGhostObject requires registering a btGhostPairCallback on the broadphase overlapping pair cache before adding ghost objects to the world. Without this callback, the broadphase omits ghost pair forwarding during proxy creation and subsequent AABB updates, so the character controller receives zero overlapping pairs and falls through geometry. Fixes #4782.

This change updates the Doxygen class comments in src/BulletCollision/CollisionDispatch/btGhostObject.h and src/BulletDynamics/Character/btKinematicCharacterController.h. Specifically, the headers now document registering btGhostPairCallback via setInternalGhostPairCallback before adding ghost objects, caller ownership of the non-owning callback pointer, assigning the convex shape on btPairCachingGhostObject, and registering the character controller with addCollisionObject and addAction.

Verification confirmed that both modified headers preserve LF-only line endings in the Git tree and document all required setup symbols and ordering constraints.

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.

Documentation for btKinematicCharacterController and btGhostObject

1 participant