add a waiting message, during startup of a demo.

fix an OpenCL kernel, broken in previous commit.
This commit is contained in:
erwincoumans
2013-11-07 16:47:18 -08:00
parent e85bae5fe3
commit 768ea211a6
3 changed files with 68 additions and 4 deletions

View File

@@ -74,7 +74,7 @@ inline void b3IntegrateTransform( __global b3RigidBodyData_t* body, float timeSt
body->m_angVel.z *= angularDamping;
b3Float4 angvel = body->m_angVel;
float fAngle = b3Sqrt(b3Dot(angvel, angvel));
float fAngle = b3Sqrt(b3Dot3F4(angvel, angvel));
//limit the angular motion
if(fAngle*timeStep > BT_GPU_ANGULAR_MOTION_THRESHOLD)
{