mirror of
https://github.com/overte-org/overte.git
synced 2025-05-01 04:42:43 +02:00
36 lines
No EOL
882 B
C++
36 lines
No EOL
882 B
C++
//
|
|
// SpatialEvent.h
|
|
// script-engine/src
|
|
//
|
|
// Created by Stephen Birarda on 2014-10-27.
|
|
// 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_SpatialEvent_h
|
|
#define hifi_SpatialEvent_h
|
|
|
|
#include <glm/glm.hpp>
|
|
#include <glm/gtc/quaternion.hpp>
|
|
|
|
#include <qscriptengine.h>
|
|
|
|
class SpatialEvent {
|
|
public:
|
|
SpatialEvent();
|
|
SpatialEvent(const SpatialEvent& other);
|
|
|
|
static QScriptValue toScriptValue(QScriptEngine* engine, const SpatialEvent& event);
|
|
static void fromScriptValue(const QScriptValue& object, SpatialEvent& event);
|
|
|
|
glm::vec3 locTranslation;
|
|
glm::quat locRotation;
|
|
glm::vec3 absTranslation;
|
|
glm::quat absRotation;
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(SpatialEvent)
|
|
|
|
#endif // hifi_SpatialEvent_h
|