BGE fix [#21488] Pumpkin in Gamekit Tutorial flips upside down

A reference was being grabbed when a copy was wanted.
This commit is contained in:
Daniel Stokes 2013-07-24 00:32:26 +00:00
parent f77405356a
commit 017d7b5447

@ -1146,7 +1146,7 @@ void CcdPhysicsController::ApplyTorque(float torqueX,float torqueY,float torque
{
//workaround for incompatibility between 'DYNAMIC' game object, and angular factor
//a DYNAMIC object has some inconsistency: it has no angular effect due to collisions, but still has torque
const btVector3& angFac = body->getAngularFactor();
const btVector3 angFac = body->getAngularFactor();
btVector3 tmpFac(1,1,1);
body->setAngularFactor(tmpFac);
body->applyTorque(torque);