Bugfix for #26795 and #26917, Fix a bug that cause the radar sensor to break
authorErwin Coumans <blender@erwincoumans.com>
Wed, 20 Apr 2011 04:55:58 +0000 (04:55 +0000)
committerErwin Coumans <blender@erwincoumans.com>
Wed, 20 Apr 2011 04:55:58 +0000 (04:55 +0000)
commitb5a2d7f15e2ae60d51c049e56346d058d7c5cb0f
tree39f879fcaf8b4bd68e275c3c1d9fa52d70408425
parent37fcffd0ac190dffb03c899d5c9868ac3cfbc52d
Bugfix for #26795 and #26917, Fix a bug that cause the radar sensor to break
Never memset(&ob, 0,sizeof(class)) when there is a constructor, it overrides all memory.
The problem was that the memset(0) was setting the scaling to (0,0,0), the height of the cone became 'infinity'
so GJK would iterate 'MAX_ITER' without converging due to this #NAN value
source/gameengine/Physics/Bullet/CcdPhysicsController.h
source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp