Merge pull request #1798 from erwincoumans/master

Change constraint solver threshold-based termination condition on res…
This commit is contained in:
erwincoumans
2018-07-22 12:28:32 +02:00
committed by GitHub
4 changed files with 37 additions and 32 deletions

View File

@@ -2954,9 +2954,9 @@ btVector3 PhysicsServerExample::getRayTo(int x,int y)
btVector3 hor;
hor = rayForward.cross(vertical);
hor.normalize();
hor.safeNormalize();
vertical = hor.cross(rayForward);
vertical.normalize();
vertical.safeNormalize();
float tanfov = tanf(0.5f*fov);