mirror of
https://github.com/overte-org/overte.git
synced 2025-06-23 01:00:49 +02:00
26 lines
No EOL
617 B
C++
26 lines
No EOL
617 B
C++
//
|
|
// Created by Sabrina Shanman 8/22/2018
|
|
// Copyright 2018 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
|
|
//
|
|
|
|
#include "PickTransformNode.h"
|
|
|
|
#include "DependencyManager.h"
|
|
#include "PickManager.h"
|
|
|
|
PickTransformNode::PickTransformNode(unsigned int uid) :
|
|
_uid(uid)
|
|
{
|
|
}
|
|
|
|
Transform PickTransformNode::getTransform() {
|
|
auto pickManager = DependencyManager::get<PickManager>();
|
|
if (!pickManager) {
|
|
return Transform();
|
|
}
|
|
|
|
return pickManager->getResultTransform(_uid);
|
|
} |