This commit is contained in:
Seth Alves 2017-05-09 10:37:45 -07:00
parent 4f24a7618a
commit b285a582bd

View file

@ -57,7 +57,7 @@ void ObjectActionMotor::updateActionWorker(btScalar deltaTimeStep) {
if (_angularTimeScale < MAX_MOTOR_TIMESCALE) {
if (!_otherID.isEmpty()) {
if (!_otherID.isNull()) {
if (other) {
glm::vec3 otherAngularVelocity = other->getAngularVelocity();
rigidBody->setAngularVelocity(glmToBullet(_angularVelocityTarget + otherAngularVelocity));