revert attempted fix for non-zero velocity for hats

This commit is contained in:
Andrew Meadows 2019-01-17 13:31:11 -08:00
parent 4fbc257be0
commit e22024b0dd

View file

@ -3833,22 +3833,22 @@ void EntityItemProperties::copySimulationRestrictedProperties(const EntityItemPo
setParentJointIndex(entity->getParentJointIndex());
}
if (!_localPositionChanged && !_positionChanged) {
setLocalPosition(entity->getLocalPosition());
setPosition(entity->getWorldPosition());
}
if (!_localRotationChanged && !_rotationChanged) {
setLocalRotation(entity->getLocalOrientation());
setRotation(entity->getWorldOrientation());
}
if (!_localVelocityChanged && !_velocityChanged) {
setLocalVelocity(entity->getLocalVelocity());
setVelocity(entity->getWorldVelocity());
}
if (!_localAngularVelocityChanged && !_angularVelocityChanged) {
setLocalAngularVelocity(entity->getLocalAngularVelocity());
setAngularVelocity(entity->getWorldAngularVelocity());
}
if (!_accelerationChanged) {
setAcceleration(entity->getAcceleration());
}
if (!_localDimensionsChanged && !_dimensionsChanged) {
setLocalDimensions(entity->getUnscaledDimensions());
setDimensions(entity->getScaledDimensions());
}
}