mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 12:02:25 +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());
|
||||
}
|
||||
if (!_localPositionChanged && !_positionChanged) {
|
||||
setPosition(entity->getWorldPosition());
|
||||
setLocalPosition(entity->getLocalPosition());
|
||||
}
|
||||
if (!_localRotationChanged && !_rotationChanged) {
|
||||
setRotation(entity->getWorldOrientation());
|
||||
setLocalRotation(entity->getLocalOrientation());
|
||||
}
|
||||
if (!_localVelocityChanged && !_velocityChanged) {
|
||||
setVelocity(entity->getWorldVelocity());
|
||||
setLocalVelocity(entity->getLocalVelocity());
|
||||
}
|
||||
if (!_localAngularVelocityChanged && !_angularVelocityChanged) {
|
||||
setAngularVelocity(entity->getWorldAngularVelocity());
|
||||
setLocalAngularVelocity(entity->getLocalAngularVelocity());
|
||||
}
|
||||
if (!_accelerationChanged) {
|
||||
setAcceleration(entity->getAcceleration());
|
||||
}
|
||||
if (!_localDimensionsChanged && !_dimensionsChanged) {
|
||||
setDimensions(entity->getScaledDimensions());
|
||||
setLocalDimensions(entity->getUnscaledDimensions());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue