Skip to content

Clarification regarding penetration and narrow-phase callbacks #297

Answered by RossNordby
Grimelios asked this question in Q&A
Discussion options

You must be logged in to vote
  1. In the reproduction, no contact is created prior to visual penetration because the sphere moves 0.22 units within a single timestep, which is larger than the configured maximum speculative margin of 0.1.
  2. The reproduction is detecting "penetration" by adding speculative margin onto the radius, which isn't correct.

By the way, with 2.4 and up, you can almost always just leave speculative margins at float.MaxValue (which is the default when no margin is provided). The effective margin scales with velocity automatically.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Grimelios
Comment options

@Grimelios
Comment options

@RossNordby
Comment options

Answer selected by Grimelios
@Grimelios
Comment options

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