Skip to content

CollideShapeCollector sometimes doesn't register hits? #1038

Answered by jrouwe
eliasdaler asked this question in Q&A
Discussion options

You must be logged in to vote

Change:

JPH::CollideShapeSettings settings;

to

JPH::CollideShapeSettings settings;
settings.mBackFaceMode = EBackFaceMode::CollideWithBackFaces;

My guess is that your car is a MeshShape and that the sphere is back facing for all triangles.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@eliasdaler
Comment options

@jrouwe
Comment options

Answer selected by eliasdaler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants