mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:17:58 +02:00
fix bug that was introducing a local velocity to an entity when it was parented to a moving avatar
This commit is contained in:
parent
d64858b1c7
commit
2bf7ac2745
1 changed files with 5 additions and 5 deletions
|
@ -3833,22 +3833,22 @@ void EntityItemProperties::copySimulationRestrictedProperties(const EntityItemPo
|
||||||
setParentJointIndex(entity->getParentJointIndex());
|
setParentJointIndex(entity->getParentJointIndex());
|
||||||
}
|
}
|
||||||
if (!_localPositionChanged && !_positionChanged) {
|
if (!_localPositionChanged && !_positionChanged) {
|
||||||
setPosition(entity->getWorldPosition());
|
setLocalPosition(entity->getLocalPosition());
|
||||||
}
|
}
|
||||||
if (!_localRotationChanged && !_rotationChanged) {
|
if (!_localRotationChanged && !_rotationChanged) {
|
||||||
setRotation(entity->getWorldOrientation());
|
setLocalRotation(entity->getLocalOrientation());
|
||||||
}
|
}
|
||||||
if (!_localVelocityChanged && !_velocityChanged) {
|
if (!_localVelocityChanged && !_velocityChanged) {
|
||||||
setVelocity(entity->getWorldVelocity());
|
setLocalVelocity(entity->getLocalVelocity());
|
||||||
}
|
}
|
||||||
if (!_localAngularVelocityChanged && !_angularVelocityChanged) {
|
if (!_localAngularVelocityChanged && !_angularVelocityChanged) {
|
||||||
setAngularVelocity(entity->getWorldAngularVelocity());
|
setLocalAngularVelocity(entity->getLocalAngularVelocity());
|
||||||
}
|
}
|
||||||
if (!_accelerationChanged) {
|
if (!_accelerationChanged) {
|
||||||
setAcceleration(entity->getAcceleration());
|
setAcceleration(entity->getAcceleration());
|
||||||
}
|
}
|
||||||
if (!_localDimensionsChanged && !_dimensionsChanged) {
|
if (!_localDimensionsChanged && !_dimensionsChanged) {
|
||||||
setDimensions(entity->getScaledDimensions());
|
setLocalDimensions(entity->getUnscaledDimensions());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue