mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 13:20:12 +02:00
don't do simple simulation on children of avatars
This commit is contained in:
parent
201d7a7d3b
commit
a1766539f4
1 changed files with 5 additions and 1 deletions
|
@ -261,7 +261,11 @@ void EntitySimulation::moveSimpleKinematics(const quint64& now) {
|
|||
SetOfEntities::iterator itemItr = _simpleKinematicEntities.begin();
|
||||
while (itemItr != _simpleKinematicEntities.end()) {
|
||||
EntityItemPointer entity = *itemItr;
|
||||
if (entity->isMovingRelativeToParent() && !entity->getPhysicsInfo()) {
|
||||
if (entity->isMovingRelativeToParent() &&
|
||||
!entity->getPhysicsInfo() &&
|
||||
// The entity-server doesn't know where avatars are, so don't attempt to do simple extrapolation for
|
||||
// children of avatars.
|
||||
!entity->hasAncestorOfType(NestableType::Avatar)) {
|
||||
entity->simulate(now);
|
||||
_entitiesToSort.insert(entity);
|
||||
++itemItr;
|
||||
|
|
Loading…
Reference in a new issue