+ Fix btSubsimplexConvexCast
Thanks to Nacho, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2422) Fix in rendering, GL_STENCIL + btTriangleIndexVertexArray indices should be unsigned int/unsigned short int, + Made InternalProcessAllTriangles virtual, thanks to Both thank to Fullmetalcoder, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2401 +clamp impulse for btPoint2PointConstraint Thanks to Martijn Reuvers, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2418 + Free memory of bvh, pass in scaling factor (optional) Thanks to Roy Eltham, http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&t=2375
This commit is contained in:
@@ -599,6 +599,8 @@ btVector3 DemoApplication::getRayTo(int x,int y)
|
||||
return rayTo;
|
||||
}
|
||||
|
||||
btScalar mousePickClamping = 3.f;
|
||||
|
||||
|
||||
void DemoApplication::mouseFunc(int button, int state, int x, int y)
|
||||
{
|
||||
@@ -686,6 +688,8 @@ void DemoApplication::mouseFunc(int button, int state, int x, int y)
|
||||
btVector3 localPivot = body->getCenterOfMassTransform().inverse() * pickPos;
|
||||
|
||||
btPoint2PointConstraint* p2p = new btPoint2PointConstraint(*body,localPivot);
|
||||
p2p->m_setting.m_impulseClamp = mousePickClamping;
|
||||
|
||||
m_dynamicsWorld->addConstraint(p2p);
|
||||
m_pickConstraint = p2p;
|
||||
|
||||
@@ -965,6 +969,8 @@ for(int i=0;i<numObjects;i++)
|
||||
//
|
||||
void DemoApplication::renderme()
|
||||
{
|
||||
myinit();
|
||||
|
||||
updateCamera();
|
||||
|
||||
if (m_dynamicsWorld)
|
||||
|
||||
Reference in New Issue
Block a user