mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 03:33:09 +02:00
scripts that edit terse update data try to assert priority physics simulation tries to assert "volunteer" priority max priority rules are applied in entity server
34 lines
1 KiB
C++
34 lines
1 KiB
C++
//
|
|
// SimpleEntitySimulation.h
|
|
// libraries/entities/src
|
|
//
|
|
// Created by Andrew Meadows on 2014.11.24
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_SimpleEntitySimulation_h
|
|
#define hifi_SimpleEntitySimulation_h
|
|
|
|
#include "EntitySimulation.h"
|
|
|
|
/// provides simple velocity + gravity extrapolation of EntityItem's
|
|
|
|
class SimpleEntitySimulation : public EntitySimulation {
|
|
public:
|
|
SimpleEntitySimulation() : EntitySimulation() { }
|
|
virtual ~SimpleEntitySimulation() { clearEntitiesInternal(); }
|
|
|
|
protected:
|
|
virtual void updateEntitiesInternal(const quint64& now);
|
|
virtual void addEntityInternal(EntityItemPointer entity);
|
|
virtual void removeEntityInternal(EntityItemPointer entity);
|
|
virtual void changeEntityInternal(EntityItemPointer entity);
|
|
virtual void clearEntitiesInternal();
|
|
|
|
SetOfEntities _entitiesWithSimulator;
|
|
};
|
|
|
|
#endif // hifi_SimpleEntitySimulation_h
|