mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-08-10 11:17:27 +02:00
Move EntityTree RayArgs back to header
This commit is contained in:
parent
a84f774999
commit
16d535c495
2 changed files with 22 additions and 22 deletions
|
@ -29,6 +29,28 @@ static const quint64 DELETED_ENTITIES_EXTRA_USECS_TO_CONSIDER = USECS_PER_MSEC *
|
||||||
const float EntityTree::DEFAULT_MAX_TMP_ENTITY_LIFETIME = 60 * 60; // 1 hour
|
const float EntityTree::DEFAULT_MAX_TMP_ENTITY_LIFETIME = 60 * 60; // 1 hour
|
||||||
|
|
||||||
|
|
||||||
|
// combines the ray cast arguments into a single object
|
||||||
|
class RayArgs {
|
||||||
|
public:
|
||||||
|
// Inputs
|
||||||
|
glm::vec3 origin;
|
||||||
|
glm::vec3 direction;
|
||||||
|
const QVector<EntityItemID>& entityIdsToInclude;
|
||||||
|
const QVector<EntityItemID>& entityIdsToDiscard;
|
||||||
|
bool visibleOnly;
|
||||||
|
bool collidableOnly;
|
||||||
|
bool precisionPicking;
|
||||||
|
|
||||||
|
// Outputs
|
||||||
|
OctreeElementPointer& element;
|
||||||
|
float& distance;
|
||||||
|
BoxFace& face;
|
||||||
|
glm::vec3& surfaceNormal;
|
||||||
|
void** intersectedObject;
|
||||||
|
bool found;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
EntityTree::EntityTree(bool shouldReaverage) :
|
EntityTree::EntityTree(bool shouldReaverage) :
|
||||||
Octree(shouldReaverage),
|
Octree(shouldReaverage),
|
||||||
_fbxService(NULL),
|
_fbxService(NULL),
|
||||||
|
|
|
@ -32,28 +32,6 @@ using ModelWeakPointer = std::weak_ptr<Model>;
|
||||||
class EntitySimulation;
|
class EntitySimulation;
|
||||||
|
|
||||||
|
|
||||||
// combines the ray cast arguments into a single object
|
|
||||||
class RayArgs {
|
|
||||||
public:
|
|
||||||
// Inputs
|
|
||||||
glm::vec3 origin;
|
|
||||||
glm::vec3 direction;
|
|
||||||
const QVector<EntityItemID>& entityIdsToInclude;
|
|
||||||
const QVector<EntityItemID>& entityIdsToDiscard;
|
|
||||||
bool visibleOnly;
|
|
||||||
bool collidableOnly;
|
|
||||||
bool precisionPicking;
|
|
||||||
|
|
||||||
// Outputs
|
|
||||||
OctreeElementPointer& element;
|
|
||||||
float& distance;
|
|
||||||
BoxFace& face;
|
|
||||||
glm::vec3& surfaceNormal;
|
|
||||||
void** intersectedObject;
|
|
||||||
bool found;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
class NewlyCreatedEntityHook {
|
class NewlyCreatedEntityHook {
|
||||||
public:
|
public:
|
||||||
virtual void entityCreated(const EntityItem& newEntity, const SharedNodePointer& senderNode) = 0;
|
virtual void entityCreated(const EntityItem& newEntity, const SharedNodePointer& senderNode) = 0;
|
||||||
|
|
Loading…
Reference in a new issue