erincatto / box2d

Box2D is a 2D physics engine for games

Home Page:https://box2d.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warmstart GJK fails

NStenum opened this issue · comments

Make sure these boxes are checked before submitting your issue - thank you!

  • Ask for help on discord and/or reddit
  • Consider providing a dump file using b2World::Dump

Getmetric for 3 points may return a negative number which will make readcache reset simplex.
Suggest using sqr values which will speedup getmetric for 2 points.
Also, when resetting simplex - keep first simplexvertex instead of picking new arbitrary points